Query regarding the function contains(s, search)
Posted: 01 Sep 2016 09:17
Hello!
Could anyone please tell me how to correctly use the function contains(s, search) if I want the exact match (i.e. if I want the function to check whether the entire substring "search" is exactly contained in the string "s" or not).
In other words, even if a part of the substring "search" is present in the string "s", the function returns "true". I rather want that the function should return "true" only if the entire substring exactly matches with some part (or whole) of string "s".
Thanks
Akhilesh
Could anyone please tell me how to correctly use the function contains(s, search) if I want the exact match (i.e. if I want the function to check whether the entire substring "search" is exactly contained in the string "s" or not).
In other words, even if a part of the substring "search" is present in the string "s", the function returns "true". I rather want that the function should return "true" only if the entire substring exactly matches with some part (or whole) of string "s".
Thanks
Akhilesh