[erlang-questions] improving the performance of regexp(regular expressions)

Jesper Louis Andersen <>
Tue Jul 1 08:01:40 CEST 2008


2008/7/1 chamila piyasena <>:
> Hi all,
> Is there a new implementation of regexp.erl or can anyone suggest a way to
> improve the performance of the functionalities given in the regexp.erl
> without using regexp library written in C.

Seriously: Consider something else than regular expressions if it is
possible. Some languages, most notably perl has used regular
expressions extensively and thus has a pretty fast implementation of
them. But usually you can easily write code without them. Maybe you
can read the data in a more structured format, maybe you can
pre-process the data into a simpler format or maybe you can skip parts
of the data.

Rather than trying to brute-force yourself through the mouse-hole, use
the door in the wall ;)

Regular expressions have their uses, but they indeed also have their abuses.



More information about the erlang-questions mailing list