Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to extract only number from string

Status
Not open for further replies.

PerlElvir

Technical User
Aug 23, 2005
68


Hi all,

I have

$var=" hello 7 hello";

and which regex I can use to get

$var="7";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top