[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: case where regex range should raise

ts

10/9/2003 11:15:00 AM

>>>>> "d" == dblack <dblack@superlink.net> writes:

d> So apparently if a { is encountered, the algorithm is:

d> 1. is there a previous pattern to apply it to?
d> a. no: error
d> b. yes: is it a plausible {} range?
d> i. yes: apply it
d> ii. no: treat it as a literal string

it's a little more complex than this :-))

See the file regexp.test in rubicon to find the rules.


Guy Decoux