Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: search and replace confusion

by davorg (Chancellor)
on Nov 08, 2006 at 11:53 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found