PDA

View Full Version : RegEx with a one-line list of exclusive words/names


Glathannus
06-28-2008, 08:33 AM
I barely know how to backlist separate & specific words (or alternate spellings/capitalizations of the same word), but how do I allow only a few different words (or different spellings/capitalizations of the same word), while prohibiting everything else?

Like how would I exclusively allow "John Doe", "Doe John" and just "Doe"?
What if I have multiple spellings/capitalizations of each word? I'm not concerned about how to recycle/overlap multiple entries that have common words - I want completely separate entries even if some of them have commonalities, and even if I have to manually crank out an unfeasibly long expression.
And what do I need if unicode characters are within at least one of my chosen entries?