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 :-))