If I have string
I want to match "bad boys" and everything before and after bad boys until word boundary \b.
Something like this
This returns
and I want it to match "toobad boys"
I know that the problem is "\\b.+?bad" which matches everything up to "bad boys", but instead it has to match everything before "bad boys" until word boundary \b.
Help?
Copy Code
12134944 toobad boys 12344444
I want to match "bad boys" and everything before and after bad boys until word boundary \b.
Something like this
Copy Code
"\\b.+?bad boys.+?\\b"
This returns
Copy Code
12134944 toobad boys
and I want it to match "toobad boys"
I know that the problem is "\\b.+?bad" which matches everything up to "bad boys", but instead it has to match everything before "bad boys" until word boundary \b.
Help?