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

Re^2: How can i extract a number from an string

by Sombrerero_loco (Beadle)
on Jan 22, 2009 at 12:04 UTC ( [id://738131]=note: print w/replies, xml ) Need Help??


in reply to Re: How can i extract a number from an string
in thread How can i extract a number from an string

and this should capture only the number from the string "BS4-SuchaString" ???
  • Comment on Re^2: How can i extract a number from an string

Replies are listed 'Best First'.
Re^3: How can i extract a number from an string
by Bloodnok (Vicar) on Jan 22, 2009 at 12:07 UTC
    As the RE says, if the string begins with BS and is followed by a single digit, that digit will be captured - see perlre.

    A user level that continues to overstate my experience :-))

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-26 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found