[erlang-questions] idea: service pack one

Vlad Dumitrescu vladdu55@REDACTED
Wed Nov 14 08:19:59 CET 2007


On Nov 14, 2007 2:49 AM, Caoyuan <dcaoyuan@REDACTED> wrote:
> I'd like to see something like:
> <_:S/binary,'[a-z]','[^abc]','var[0-9]',$x,$/,d,d,d,d,$/,d,d,$/,d,d,$/,_/binary>>
> where we can wrap any regexp in atom

a little off-topic: Maybe not _any_ regexp, but a subset -- how would
you handle 'a[b-y]+[0-9][^a-z]*u' in a straightforward way? It can't
be transformed into a binary with many variables and a lot of guards,
it needs a state machine.

best regards,

More information about the erlang-questions mailing list