Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Text::Balanced with nested / custom brackets

by ikegami (Patriarch)
on Sep 07, 2006 at 22:36 UTC ( [id://571822]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Text::Balanced with nested / custom brackets
in thread Text::Balanced with nested / custom brackets

The function to extract tagged data can indeed be used.

my @links; my $extractor = gen_extract_tagged('[[', ']]', qr/(?:(?!\[\[).)*/); for (;;) { (my $link, $text) = $extractor->($text); last if not defined $link; push(@links, $link); }

Untested.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-03-28 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found