[erlang-questions] Regular Expressions in Erlang

mats cronqvist mats.cronqvist@REDACTED
Thu Dec 20 09:22:18 CET 2007


On Wed, 2007-12-19 at 18:14 +0000, Tomasz Blachowicz wrote:
> 
> If there are any other decent implementations of regexp available
> please let me know. 

  i use gregexp (written by pascal brisset);
http://www.cellicium.com/erlang/contribs

  it does submatches and is (or at least used to be) quite a bit faster
than the pretty pathetic OTP regexp.

  rumour has it that robert virding is working on a new erlang
implementation; couldn't find any code by googling though.

  if you want a real (as in something used outside the erlang world)
regexp, the links below shows how to turn the PCRE (http://www.pcre.org)
library into a couple of BIFs (code by istvan varadi). used to work very
well in R11B.

http://www.pcre.org
http://www.trapexit.org/Adding_my_own_BIF
http://forum.trapexit.org/viewtopic.php?t=5906

  if i had to do it again i'd chose the TRE library instead.
  of course, seems like it's already been done by some French guy;
http://easyerl.blogspot.com/2007/10/libtre-returning-matching-values.html

  Claes "klacke" Wikström will of course not be outdone;

http://patricklogan.blogspot.com/2007/09/apparently-fast-erlang-file-read-and.html


  this got to be a bit longer that i intended. i'll post it anyways to
aid future googlers.

  mats





More information about the erlang-questions mailing list