Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: followup on regex

by Wonko the sane (Deacon)
on Jul 21, 2003 at 19:24 UTC ( #276413=note: print w/ replies, xml ) Need Help??


in reply to followup on regex

Your original regex has a flaw in the character class.

The '-' needs to be escaped.

This is a corrected pattern that should do what you want.

s/(copyright\s+[\d\-\s\,]*)/$1, 2003/i

Wonko


Comment on Re: followup on regex
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-09-22 19:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls