Regular Expressions for Numeric and Character Masking

The new string intrinsic method IsMatch, with parameters pattern and result, can be used to deal with regular expressions for email address formatting.

For example to Validate an IP Address:

#STD_TEXT.IsMatch

Pattern("^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$")

Result(#Label1)

 

#STD_TEXT = 12.13.14.15 will return TRUE, and #STD_TEXT = a.b.c.d will return FALSE.

The phrase regular expressions, and consequently, regexes, is often used to mean the specific, standard textual syntax for representing patterns for matching text. A regex pattern matches a target string.

Can use https://regexr.com/ website or any other similar website to build, test, validate and copy common regular expressions.