[Newbies] ByteString>>match: greedyness of * ??
Ch Lamprecht
ch.l.ngre at online.de
Tue Jan 8 17:58:42 UTC 2008
Hello,
I found the following results for some expressions using #match:
'e' match: 'e'. "true"
'*' match: 'e'. "true"
'#' match: 'e'. "true"
'*e' match: 'e'. "true"
'*#' match: 'e'. "false"
'**' match: 'e'. "false"
'*' match: ''. "true"
'**' match: ''. "false"
Is this expected behavior?
Looks like * is sometimes 'greedy', sometimes not. (Comparing 4 and 5)
Thank you for any hints.
Christoph
More information about the Beginners
mailing list