I want to find particular string in JAVA and I am using CONTAINS function for that.
But problem with CONTAINS is that it gives true even if there is a super string available for that string.
Ex- let’s say
String i = "anand > 5 or id < 6"
and I want to check whether string contains AND or OR. But here i.contains("and") will give true because of anand.
How to solve this issue?
Is there any function available in library?
(?s)let . also match newlines\\bis a word boundaryIn answer to comment “hey now I wanted…”