in reply to regex is too long

You may also want to look into the little used perl function study, which is good to run on a string that you want to many matches against, but not actually change the string.
                - Ant

Replies are listed 'Best First'.
study
by jhanna (Scribe) on May 09, 2001 at 00:51 UTC
    Study works on the string being searched, not the regular expression. The string being searched is relatively short (ie < 180 chars), and is different every time. (Ok 50% different each time).
      Ahh, I thought you were running like, 40 regexps on a string, in which case it could help...
                      - Ant