I want and search for a text in a text. But it should not matter if it is written in upper or lower case letters
How do I do it?
Hi Vishu
the solution was this
Hi @Lars5 ,
The First Solution is working for me. Please find the another solution.
Code:
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\OneDrive \\Desktop\\Input.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.ParseText.RegexParseForFirstOccurrence Text: FileContents TextToFind: $'''KONTOUDTOG''' StartingPosition: 0 IgnoreCase: True OccurrencePosition=> Position Match=> Match
IF IsNotEmpty(Match) THEN
IF Contains(Match, $'''KONTOUDTOG''', True) THEN
Display.ShowMessageDialog.ShowMessage Message: $'''Yes''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed7
END
END
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
Hi again
My variabel include this:
*********************************************
Kassekladde AccpScan
VS:
Snooze 01/02/1900
1 uge
3 dage
1 dag
Bilagstype
Kreditorfaktura
CVR nr 43869205
Dato 01.12.2023 01/12/2023
Kreditor
43869205 - Greens Engros ApS
Ă—
Modkonto
1310 - Varekøb
Ă—
I25
Ă—
Beløb
254.696,69 DKK
Tekst KONTOUDTOG - Greens Engros ApS
Greens Engros ApS 96%
Betaling og faktura
Fakturanr 477997
Betalingstype
Ă—
Forfaldsdato 31.12.2023 31/12/2023
Nytårsaften - Søndag
Vælg næste bankdag
Overfør nu [CTRL+A]
*********************************************
But the code don't find "Kontoudtog"
Hi @Lars5 ,
Yes it will work even if everything in lower case also.
Please mark is as solution.
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
Thanks
And the exembel vill also work if the text(Kontoudtog) is writet with small letter
Hi @Lars5 ,
Please find the solution. To store the text in variable I am reading text from the Text file.
NOTE: PLEASE ENABLE IGNORE CASE in If condition as shown in below image.
Code:
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\OneDrive\\Desktop\\Input.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
IF Contains(FileContents, $'''KONTOUDTOG''', True) THEN
Display.ShowMessageDialog.ShowMessage Message: $'''Yes''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed7
END
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
I already have the text in a variabel. So I shall only check about the varibel contains that word
Hi @Lars5 ,
Do you means your text file contains these words or pdf file.
In which type of file does this text(Kontoudtog) Contains (PDF,Word,Text).
Regards,
Vishnu Reddy
Thanks
I wanted to check if a text contains the following words no matter how it is written.
KONTOUDTOG
Kontoudtog
kontoudtog
KontoUdtog
Hi @Lars5 ,
Use can use regex in Parse text action as shown in below image.
If you could share your text file we can help you more.
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2