How to use matches operation in String Function Using XPath in Xml
In this article I will explain matches operation of string function.
Introduction
The matches operation of string can be used to match the string with the given pattern and return true if the string matches with the pattern otherwise return false.
Syntax
matches (string , pattern)
|
Example
matches ( "Richa" ,"Rich")
matches ( "Have a nice day" , "nice")
matches ( "Have a nice day" , "how")
Output
true
true
false
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here