mweinberger
07-04-2006, 09:34 PM
Hi,
1. Topic One (Multiple Indendent Expressions)
I'm a registered user of VBPro v6.1 and have a question on regular expressions. I want to create a single "Replace in File" action that operates on a single file. I would like 5 independent search and replaces performed. The way that I'm envissioning things is that each line in the "Text or regular expression to find:" box would match a line in the "Text or regular expression to replace matches with:".
"Text or regular expression to find:"
=========================
FILEVERSION\s.*
PRODUCTVERSION\s.*
"FileVersion", ".*
"ProductVersion", ".*
"LegalCopyright", ".*
=========================
"Text or regular expression to replace matches with:"
======================================
FILEVERSION %VERSION_IMMOD_FILE%
PRODUCTVERSION %VERSION_IMMOD_PRODUCT%
"FileVersion", "%VERSION_IMMOD_FILE%"
"ProductVersion", "%VERSION_IMMOD_PRODUCT%"
"LegalCopyright", "%LEGALCOPY_IMMOD%"
======================================
As you can see there are five independent search and replaces. I tried what you see above and it didn't work. I seem to recall that I have to add something. I just don't remember what.
2. Topic Two (Case Sensitive Expressions)
How can I make the search for a particular expression case senstive. The "fileversion" in the expression (FILEVERSION\s.*) is different than the "fileversion" in the expression ("FileVersion", ".*).
Thanks in advance,
1. Topic One (Multiple Indendent Expressions)
I'm a registered user of VBPro v6.1 and have a question on regular expressions. I want to create a single "Replace in File" action that operates on a single file. I would like 5 independent search and replaces performed. The way that I'm envissioning things is that each line in the "Text or regular expression to find:" box would match a line in the "Text or regular expression to replace matches with:".
"Text or regular expression to find:"
=========================
FILEVERSION\s.*
PRODUCTVERSION\s.*
"FileVersion", ".*
"ProductVersion", ".*
"LegalCopyright", ".*
=========================
"Text or regular expression to replace matches with:"
======================================
FILEVERSION %VERSION_IMMOD_FILE%
PRODUCTVERSION %VERSION_IMMOD_PRODUCT%
"FileVersion", "%VERSION_IMMOD_FILE%"
"ProductVersion", "%VERSION_IMMOD_PRODUCT%"
"LegalCopyright", "%LEGALCOPY_IMMOD%"
======================================
As you can see there are five independent search and replaces. I tried what you see above and it didn't work. I seem to recall that I have to add something. I just don't remember what.
2. Topic Two (Case Sensitive Expressions)
How can I make the search for a particular expression case senstive. The "fileversion" in the expression (FILEVERSION\s.*) is different than the "fileversion" in the expression ("FileVersion", ".*).
Thanks in advance,