re module zero-based indices

Bernard Duggan bernie@REDACTED
Thu Jun 4 08:09:06 CEST 2009


Hi all,
    Can anyone explain to me the thinking behind making character
indices in the re: module zero based, rather than 1 based like pretty
much everything else in erlang?  I was just going through our code
migrating from the old regexp: calls and it struck me as a bit
odd/inconsistent.  It's quite likely I'm missing something obvious though...

(My apologies if this has been asked before - searching for the string
"re" returns an awful lot of results :)).

Cheers,

Bernard


More information about the erlang-questions mailing list