In Perl6:
I do think they should give shortened versions of the <before > and <after > assertions. Oh well, maybe they'll throw it in.### <Perl6> @match = m:e/ X \d : .+? <before X \d | $ > /; ### </Perl6>
(Note for onlookers: The colon within the regex is thrown in for a small bit of engine optimization, and actually also helps in detecting malformed strings.)
kelan
Perl6 Grammar Student
In reply to Re: Re: use regex to split sentence
by kelan
in thread use regex to split sentence
by dyno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |