Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^7: Regex problem while parsing tagged, hierarchical data

by Mago (Parson)
on Sep 19, 2006 at 14:28 UTC ( #573734=note: print w/replies, xml ) Need Help??


in reply to Re^6: Regex problem while parsing tagged, hierarchical data
in thread Regex problem while parsing tagged, hierarchical data

33 chars !
perl -pi -e '/l1(\sid=.*)>/?$a=$1:s;l2>;l2$a>;' input


Mago
mago@rio.pm.org


Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://573734]
help
Chatterbox?
[Lady_Aleena]: Corion, done.
[Discipulus]: long live to cookies maker!
Discipulus or is long life?
Lady_Aleena giggles.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-04-26 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.