Indicates whether or not this string matches the given regular expression.
An invocation of this methode of the form str.matches (regular expressions) produces exactly the same result than the expression.
1 string.matches
<string.matches>
<text /> !
<pattern /> !
</string.matches>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etext | string | ||||
Epattern | string |
Returns | |
---|---|
Type | Description |
boolean | Returns 1 (true) only if the string matches with the given regular expression. |
Exceptions
requires 2 arguments, received: ...
The 2 entry parameters has been specified.
Example
Copy
<xsql-script name='string_matches'> <body> <set name='m_status'>AFTER DEPARTURE</set> <if> <expr><string.matches><m_status/>*A*</string.matches></expr> <then> <println><string.matches><m_status/>*A*</string.matches></println> </then> </if> </body> </xsql-script>
Returns:
Copy
true