in reply to Regular expression questions

Your regex looks reasonable to me, so long as all the words in the dictionary are lowercase. Running it on my local dictionary file gives appropriate results. Could you provide an example of something that was matched and shouldn't have been?

By the way, I find it easier to debug regular expressions when using the 'x' modifier, as follows:

print if m{ a.*? b.*? o.*? r.*? t }x;
</code>

Replies are listed 'Best First'.
Re^2: Regular expression questions
by chinamox (Scribe) on Oct 07, 2006 at 20:28 UTC
    Thanks for the formating advice, I used it and found my problem (I forgot a single "." in my orginal!) *head desk*