Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: search and replace confusion

by davorg (Chancellor)
on Nov 08, 2006 at 11:53 UTC ( #582857=note: print w/replies, xml ) Need Help??


in reply to search and replace confusion

Your input contains:

<!-monthstart--><option value="01">January </option>\n

Your substitution looks for:

s/<!--monthstart-->.*<!--monthend-->/MONTHS<br>\n/s;

Spot the discrepancy :)

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^2: search and replace confusion
by jonnyfolk (Vicar) on Nov 08, 2006 at 12:07 UTC
    Aah, thanks very much. More embarrassing is the amount of time I've spent staring at it trying to find my mistake!! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://582857]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-08-16 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?