Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] User Tips, Tricks and Samples
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-14-2011, 11:07 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,031
Create a project or global script function something like this:

Code:
Function MatchesRegEx(s, regex)
  Set e = New RegExp
  e.IgnoreCase = True
  e.Global = True
  e.Pattern = regex
  MatchesRegEx = e.Test(s)
End Function
and call it from the build rule using a script expression (see the attached sample).

12/14/2011 10:07:24 AM: Building project step 1 - Test num...
12/14/2011 10:07:24 AM: Building project step 2 - Test str...
12/14/2011 10:07:24 AM: Step skipped
Attached Files
File Type: bld regex_rule.bld (741 Bytes, 3266 views)
Reply With Quote
 

Tags
condition , regexp , regular expression , rule


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 03:18 AM.


Copyright © 1999-2023 Kinook Software, Inc.