[erlang-questions] Regex to match an empty string

Vik Olliver vik@REDACTED
Tue Feb 24 00:51:00 CET 2009


Michael McDaniel wrote:
> $ erl
> Erlang (BEAM) emulator version 5.6.5 [async-threads:0] [hipe] [kernel-poll:false]
>
> Eshell V5.6.5  (abort with ^G)
> 1> re:run("", "^$").
> {match,[{0,0}]}
> 2> q().
>
> $
>   

Blast.

Erlang (BEAM) emulator version 5.6.1 [source] [smp:2] [async-threads:0] 
[hipe] [kernel-poll:false]
...
8> re:run("", "^$").
** exception error: undefined function re:run/2

I have to make this run on existing production code.

Vik :v)



More information about the erlang-questions mailing list