|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^6: Regex problem while parsing tagged, hierarchical databy mk. (Friar) |
| on Sep 19, 2006 at 09:57 UTC ( [id://573726]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
perl -pi -e '/1 id="(.*)"/?$ci=$1:s/2>/2 id="$ci">/g' input (: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "one who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever." mk at perl dot org dot br
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||