in reply to Regular Expression Doubt
$text = '1 + 2 <maths> + dfdf</maths>'; for( split '\s', $text ){ if(/<maths>/.../<\/maths>/){ next }else{ if(/+/){ $text =~ s/$_/ + / } } } #STDOUT: 1  +  2 <maths> + dfdf</maths>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regular Expression Doubt
by reasonablekeith (Deacon) on Apr 05, 2005 at 13:45 UTC | |
by Anonymous Monk on Apr 05, 2005 at 14:31 UTC | |
by reasonablekeith (Deacon) on Apr 05, 2005 at 15:09 UTC | |
by Anonymous Monk on Apr 06, 2005 at 08:41 UTC | |
by sh1tn (Priest) on Apr 05, 2005 at 15:46 UTC |