Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: use regex to split sentence

by kelan (Deacon)
on Nov 02, 2002 at 05:08 UTC ( [id://209894]=note: print w/replies, xml ) Need Help??


in reply to Re: use regex to split sentence
in thread use regex to split sentence

In Perl6:

### <Perl6> @match = m:e/ X \d : .+? <before X \d | $ > /; ### </Perl6>
I do think they should give shortened versions of the <before > and <after > assertions. Oh well, maybe they'll throw it in.

(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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://209894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found