Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: difference in regex

by Athanasius (Archbishop)
on May 29, 2018 at 13:42 UTC ( [id://1215367]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $row = 'a,b,c,d,15';
    my $str = $row =~ s/,[^,]*$//r;    # $str now contains 'a,b,c,d'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1215367]
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: (7)
As of 2024-04-19 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found