in reply to regex is too long

See SAS log scanner for some benchmarks and some code by tilly for optimizing such regular expressions.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
SAS scanner
by jhanna (Scribe) on May 09, 2001 at 01:11 UTC
    Thanks for the excellent reference -- that discussion is quite to the point. I guess I should run a benchmark to figure which is actually faster: multiple index() or hand-optimized regex... I worried about the regex that by adding too many parenthesis it would further bog it down, but until I try I guess there's no way to know.

    j