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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extract numbers from form element

Status
Not open for further replies.

onpnt

Programmer
Dec 11, 2001
7,778
US
Does anyone know a easy way to extract only numbers form a string in a item box.

like this: 1.5 GHZ Processor for $150

I only want this for my calculations: 150

Thanks provide tools to let people become their best.
 
Read in the full string.
Search for "$".
Take everything after this position.
Search for " "
Take everything before this position.
This gives you the price.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top