Your input contains:
<!-monthstart--><option value="01">January </option>\n
Your substitution looks for:
s/<!--monthstart-->.*<!--monthend-->/MONTHS<br>\n/s;
Spot the discrepancy :)
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: search and replace confusion
by davorg
in thread search and replace confusion
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |