Regex

Synopsis

New ISL functions.

Syntax

Usage

In design :
Rule r As Any = createRegex("^[a-zA-Z0-9]\d{2}[a-zA-Z0-9](-\d{3}){2}[A-Za-z0-9]$")
In Immediate window:
Intent >RegexMatch?("0919-2893-1256", r)
--> False
Intent >RegexMatch?("A08Z-931-468A", r)
--> True
Or simplified:
Intent >RegexMatch?("_A90-123-129X", "^[a-zA-Z0-9]\d{2}[a-zA-Z0-9](-\d{3}){2}[A-Za-z0-9]$")
--> False 
For case sensitive regex matching:
Rule r As Any = createRegex("^a", ignoreCase? := False)
 
Intent >RegexMatch?("A", r)
--> False 

.NET regex-related documentation:

http://msdn.microsoft.com/en-us/library/hs600312.aspx

http://msdn.microsoft.com/en-us/library/az24scfc.aspx