Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: case insensitive replace, but maintains capitalization

by samarzone (Pilgrim)
on Dec 24, 2010 at 07:22 UTC ( #878984=note: print w/ replies, xml ) Need Help??


in reply to Re^2: case insensitive replace, but maintains capitalization
in thread case insensitive replace, but maintains capitalization

This script beautifully handles the first letter of the word. You'll still have to define the (complex) rules for this in case you need more than just first letter. For example if you want "animal" to be replaced by "pet" then what should "ANiMal" be replaced with?

-- Regards - Samar


Comment on Re^3: case insensitive replace, but maintains capitalization

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (14)
As of 2015-05-22 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (453 votes), past polls