Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: case insensitive replace, but maintains capitalization

by Anonymous Monk
on Dec 24, 2010 at 05:30 UTC ( [id://878966]=note: print w/replies, xml ) Need Help??


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

Bingo!! This is exactly what I wanted!!
  • Comment on Re^2: case insensitive replace, but maintains capitalization

Replies are listed 'Best First'.
Re^3: case insensitive replace, but maintains capitalization
by samarzone (Pilgrim) on Dec 24, 2010 at 07:22 UTC

    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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-19 03:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found