$text =~ s {( # Capture in $1 <maths> # Tag [^<]* # Not a <, zero or more times (?: # Group, non-capture. < # <, (?!/maths>) # not followed by /maths> [^<]* # Not a <, zero or more times )* # Repeat. </maths> # End tag. ) # End capture $1. | # Or + # Target. } {$1 || " + "}exg;
In reply to Re: Regular Expression Doubt
by Anonymous Monk
in thread Regular Expression Doubt
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |