Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Swapping two parts of a string

by grep (Monsignor)
on Jul 23, 2007 at 01:50 UTC ( [id://628168]=note: print w/replies, xml ) Need Help??


in reply to Swapping two parts of a string

FWIW a non regex answer
my $input = "(55.950254, -3.187606)"; my $result = '('.join(' ',reverse(split(/[(),]/,$input))).')';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2026-04-22 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.