I’ve been pulling my hair out over this, and I know it’s a simple solution that just seems to escape me at the moment.
I am attempting to perform a match using a Regex code (client side, character classes only) that will match “looking for” within 20 spaces (any character) of “male”.
I don’t care what the characters or spaces are, it must not find a match if the two words/phrases are more than 20 characters apart.
I have the code setup to match the phrases I just need to know how to set the parameter of a distance search. “Only match Looking for with Male if they are within zero to twenty characters of each other.
The (?i) flag is just “ignore case”.
EDIT:
with the suggestions: