That regexp is rather incomprehensible and has useless assertions. (For example, (?=\w*w\w*) could be written as (?=\w*w). And \w+\b is redundant.) The following is equivalent and easier to read:
$searchTitle =~ /pr\w{4}m/ && $searchTitle =~ /w\w*b|b\w*w/
The expression is true if the title contains both 1) a word containing "pr" followed by /\w{4}/ followed by "m", and 2) a word containing "b" and "w" in any order.
In reply to Re: loops & sql results storage (regexp)
by ikegami
in thread loops & sql results storage
by breal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |