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

greedy/non-greedy regex assertions

Thread Next
Ashley Winters
July 4, 2002 10:16
greedy/non-greedy regex assertions
Message ID:
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.

Ashley Winters

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About