Can someone please help me with a regular expression to change multiple instances of:
FileName ( ../../Routes/Watersnake/Alias/xyz1234.s )
in a file to:
FileName ( "../../Routes/Watersnake/Alias/xyz1234.s" )
xyz1234 is different in content and length in each expression and should remain unchanged. The remainder is the same in all expressions and should be repeated as it is.
Thank you.
Regular expression to change line of text
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Thanks but it adds the quotes for all lines with a format likeben_josephs wrote:Depending the exact details of what is to be replaced, this might do it:
Find what: FileName \( ([^)]+) \)
Replace with: FileName \( "$1" \)
FileName ( xxxxx.s )
I really only need to replace lines with ../../Routes/Watersnake/Alias included in them.
If that is not possible, what you have provided should be acceptable.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm