I am new to regex and help me with a solution
for example i have a string as below,
String str = "this is a hello world string and duplicate starts from here this is a hello world string";
i wanted to check the following condition using regex.
if("this is a hello world string" has appeared more than once in String str){
return false;
}
else{
return true;
}
How this can be achieved?