John Meyer wrote:
Is there a way to make a regular expression to match on a particular way
the letters are arranged?  For instance, if you had a word:

THAT


It could match on any word in the dictionary that had the form:

1231


I think something like this might be possible using lookbehind assertions.
It's not the kind of pattern that regex was designed for though, it would probably be easier to write the processing using PHP character indexing.


David

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to