Find an replace
-
Hello,
is it possible to search for a text that starts with certain characters, followed by a variable text and ends again with a certain character string?
For example:
location='WINDOWS[0][listbox “Text 1”][option
location='WINDOWS[0][listbox “Text 2”][option
location='WINDOWS[0][listbox “Text 3”][optionshould be changed to:
location='WINDOWS[0].TABSEQUENCE[option
location='WINDOWS[0].TABSEQUENCE[option
location='WINDOWS[0].TABSEQUENCE[optionThank’s for your help
-
if listbox followed by a text encased in double quotes is a unique term then
you can do something like
find whatlistbox.*?".*?"
replace with\.\t
don’t forget checkingregular expression
-
For a more direct interpretation, I suggest:
Find
(?-si)(location='WINDOWS\[0\]).*?(?=\[option)
Repl\1.TABSEQUENCE
Mode Regular exp -
Great, thanks for you fast help, now I’m happy :-)