Locate number within string of words - 02/10/11 06:54 PM
I am working on a script that parses the data in strings like this:
(W6RK-Bot) spot: W6JTI Humboldt, CA (fixed) 28043.3 CW
I want to locate the number in the string, i.e. 28043, and check to see if it's within a numerical range (ie. 28000-29700). I looked at isin() and iswc() but neither seems to be sufficient for my needs. The string above is an example, there can be more/fewer words both before and after the number. How can I do this?
(W6RK-Bot) spot: W6JTI Humboldt, CA (fixed) 28043.3 CW
I want to locate the number in the string, i.e. 28043, and check to see if it's within a numerical range (ie. 28000-29700). I looked at isin() and iswc() but neither seems to be sufficient for my needs. The string above is an example, there can be more/fewer words both before and after the number. How can I do this?