I would like to find the exact match of one string in another. Currently i have used XPATH's contains() function to do this task, but the problem is it also returns true if it is not an exact match.
Syntax of contains() is :- contains("'String_to_be_searched_Within','String_to_be_searched_For'") --- Return value = true/false
See the e.g. :- If I want the string say 'ash' to be searched in a string 'Hello ashish .How r u?' , the contains() will return "true" bcoz. it finds "ashish" in the string which is not the exact match for "ash" which i have searched for.
So please give me an insight on how to solve this.