match-pattern
Returns Boolean true if the input string matches the regular expression defined by pattern; false otherwise. See also Regular expressions.
Note: | When generating C++, C#, or Java code, the advanced features of the regular expression syntax might differ slightly. See the regex documentation of each language for more information. |

Languages
Built-in, C++, C#, Java.
Parameters
Name | Type | Description |
---|---|---|
string | xs:string | The input string. |
pattern | xs:string | The regular expression to match. |
Example
The following mapping validates various person titles. Specifically, the mapping will output true for any of the following titles: Mr, Mrs, Mx, Ms, Miss.

If the input string is other than any of the titles listed above, the mapping outputs false.