develooper Front page | perl.perl6.language | Postings from July 2002

greedy/non-greedy regex assertions

Thread Next
From:
Ashley Winters
Date:
July 4, 2002 10:16
Subject:
greedy/non-greedy regex assertions
Message ID:
200207041016.04823.qaqortog@nwlink.com
I was pondering how to implement the apocalypse 5 stuff (only pondering) and I 
was wondering if <Inf,0> could be legal, indicating a greedy match.

* = <Inf,0>
+ = <Inf,1>
? = <1,0>
*? = <0,Inf>
+? = <1,Inf>
?? = <0,1>

Speaking of the range assertion, is there anything other than <x,y>? There 
used to be discussion on the list about adding more possibilities, but I 
didn't follow it.

Thanks,
Ashley Winters

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About