in reply to Re^3: Regex problem while parsing tagged, hierarchical data
in thread Regex problem while parsing tagged, hierarchical data
perl -pi -e '/(<level(1|2))(\sid=\".*\")*>/;$&?$2==1?$b=$3:$_=~s;($1); +$1$b;g:1' input
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Regex problem while parsing tagged, hierarchical data
by smokemachine (Hermit) on Sep 19, 2006 at 13:14 UTC | |
by mk. (Friar) on Sep 19, 2006 at 13:57 UTC | |
by Mago (Parson) on Sep 19, 2006 at 14:28 UTC |