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