Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Preserve Case in Regexp

by Abigail-II (Bishop)
on Mar 16, 2004 at 11:01 UTC ( #336971=note: print w/replies, xml ) Need Help??


in reply to Preserve Case in Regexp

Is that possible or already existing, or already planned?
Not for perl5, but feel free to submit a patch.
Am I missing something here?
Such a substitution is probably far less common that you might think. Not common enough to use a regex flag and increase the complexity of perl (the interpreter). It would also start endless discussions of what the behaviour would be if the replacement is longer/shorter than the original, and cases where the match is in lower-case, the replacement is in upper-case, and there's no lower-case equivalent for said upper-case. Not to mention the symantics of the /eI combo.

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://336971]
help
Chatterbox?
LanX fish hawk hunting
[erix]: I think they use Cormorants for that in Asia, by putting a ring around their necks to prevent them from swallowing. Plenty of cormorants here too (=Kormoran)
[erix]: (I've seen gruops of up to a thousand cormorants overhead)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-10-20 10:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (261 votes). Check out past polls.

    Notices?