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