View Single Post
  #2  
Old 12-14-2011, 12:07 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,658
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, 1181 views)
Reply With Quote