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 :-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login