Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: I don't remember regex seeming this hard before

by ambrus (Abbot)
on Jun 15, 2004 at 09:32 UTC ( [id://366826]=note: print w/replies, xml ) Need Help??


in reply to I don't remember regex seeming this hard before

Here's a simple sed-like solution. This is probably not the fastest way, though.

$string = "<<a> a> a <a>\n"; { $string=~s/<([^<]*)>/\U$1/g and redo; } print $string;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found