in reply to
Non-exclusive or in regexp?
Another alternative, one that gives false positives, but not on realistic texts, and is pretty simple, would be
/(?:dr\. |doctor | condoleeza )+rice\b/i
[download]
It would also match unlikely things like "condoleeza dr. rice", but it'll make sure that at least one of them, and as many as possible, is there.
Comment on
Re: Non-exclusive or in regexp?
Download
Code
In Section
Seekers of Perl Wisdom