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

Re: split question

by Amoe (Friar)
on Sep 08, 2001 at 16:21 UTC ( #111154=note: print w/replies, xml ) Need Help??


in reply to split question

Isn't this code more the approach you're after?
use strict; use warnings; my $inLine = 'RPC, rpc #001b, (1987)'; $inLine =~ s/\((\d+)\)$//; my $working = $1; print $working;
Sorry for the probably appalling regex, I am only a scribe :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2016-10-01 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (8 votes). Check out past polls.