[erlang-bugs] regexp: no pattern matches empty string

Taisuke Hori <>
Sun Jul 20 20:02:31 CEST 2008


Hello,

I suspect a bug in regexp. I tried to match some patterns to a empty
list, but they ware not matched.

$ erl -version
Erlang (ASYNC_THREADS,HIPE) (BEAM) emulator version 5.5.5
$ erl
Eshell V5.5.5  (abort with ^G)
1> regexp:match("", "").
nomatch
2> regexp:match("", ".*").
nomatch

Is this a bug or feature?

Thank you


--
Taisuke HORI
mail: 



-- 
Taisuke Hori




More information about the erlang-bugs mailing list