[erlang-questions] Re: Adoption of perl/javascript-style regexp syntax

Ulf Wiger ulf.wiger@REDACTED
Wed Jun 3 11:31:35 CEST 2009


Robert Virding wrote:
> 2009/6/3 mats cronqvist <masse@REDACTED <mailto:masse@REDACTED>>
> 
>      Alas, re wants strings, and there's not much I can do about that.
> 
> 
> Not quite true. The *underlying implementation* wants the regexp as a 
> string but this does not mean that the user has to supply it as a 
> string. You could very well allow the regexp as an AST (as well as?) and 
> then internally convert it to a string.
> 
> Robert

This would be a nice addition at any rate.
It could well be offered as a library on top of re.

BR,
Ulf W


More information about the erlang-questions mailing list