[REBOL] Regular Expressions Re:(4)

2000-01-07 Thread ole_f
Hi Petr, 6-Jan-2000 you wrote: [...] >> How about this: >> >> >> a: [skip a | "ing"] >> == [skip a | "ing"] >> >> parse "ringin" a >> == false >> >> parse "ringing" a >> == true >> >> It should do the job. So actually backtracking in Parse can be achieved by use >> of the "|" operator in Parse bl

[REBOL] Regular Expressions Re:(4)

2000-01-08 Thread ole_f
Hi Petr, 8-Jan-2000 you wrote: [...] >> Ah, then I just got you wrong. The easy way to do the above is first to split >> the text up with >> >> parse str none >> >> and then match the individual words. However, this should work too: >> >> sep: charset " ,.!?" ; and whatever else you want to split