Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Extract content from a string

by Corion (Patriarch)
on Jan 05, 2011 at 11:46 UTC ( #880578=note: print w/replies, xml ) Need Help??


in reply to Extract content from a string

Wouldn't splitting up the string at [[ be enough?

my @paragraphs = split /\[\[/, $input;

Also see Text::WikiFormat.

Replies are listed 'Best First'.
Re^2: Extract content from a string
by ultranerds (Hermit) on Jan 05, 2011 at 11:48 UTC
    Eugh, why do I always have to overcomplicate things? =)

    Works like a charm - thanks :)

    Cheers

    Andy

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2022-11-28 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?