Hello,
I'm trying to streamline a series of commands that searches for a specific string that has been indented ("Image Area=Image Area") & changes some text that appears a few lines after("Y2=479" becomes "Y2=576"):
The reason I have to search for "Image Area..." is because the "Y2=479" appears as a parameter in other areas of my script that I don't want to change. I only want to change the "Y2=479" parameter under "Image Area".
The other tricky part is that "Image Area" settings are indented various amounts throughout the script.
So what I need to figure out, is how to select:
"Image Area=Image Area(include everything between)Y2=479"
Replace with
"Image Area=Image Area(dont touch anything between)Y2=576"
Any help on how I can accomplish this would be much appreciated.
This assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
It also assumes that Maintain indentaion is not set for the document. Deselect Configure | Preferences | Document Classes | <Class> | Maintain indentaion
or View | Document Properties | Preferences | Maintain indentaion.
Thank you - That worked! I did make one lil adjustment. There seems to be a missing "." at the end of the search string, right before the last "*" - as soon as I added that, it worked like a charm.