User Tools

Site Tools


syntax:functions:isregexmatch

This is an old revision of the document!


IsRegExMatch(text, regex_text)

Category: Text function


Description

This function determines if text matches the regular expression ("RegEx") pattern regex_text and returns TRUE if it does. Otherwise, it returns FALSE.


Arguments

ArgumentTypeDescription
textTextThe text value to test against the regex_text RegEx pattern.
regex_textText (RegEx pattern)The string pattern to search for within text.

Return value type: Boolean (TRUE/FALSE)


Examples

isregexmatch('1234', '^\d{4}$') //Returns TRUE
isregexmatch('12345', '^\d{4}$') //Returns FALSE
isregexmatch('11-2233', '\d{2}-\d{4}') //Returns TRUE
isregexmatch('112233', '\d{2}-\d{4}') //Returns FALSE


See also

syntax/functions/isregexmatch.1628993083.txt.gz · Last modified: 2021/08/14 22:04 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki