Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-04-2006, 09:34 PM
mweinberger mweinberger is online now
Registered User
 
Join Date: 12-23-2005
Posts: 40
Multiple Regular Expressions & Case Sensitive

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,
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:44 PM.


Copyright © 1999-2023 Kinook Software, Inc.