Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Regex help

  • Please log in to reply
1 reply to this topic

#1 willy800


  • Members
  • 125 posts
  • Local time:04:09 PM

Posted 30 June 2015 - 03:31 PM

I am trying to get my head around this regex stuff.
The page source I am looking at--

<tr><td class="parameter-name">Air Temperature</td><td class="value">64.58 F</td></tr><tr><td class="parameter-name">Relative Hum...</td><td class="value">47 %</td></tr><tr><td class="parameter-name">Barometric P...</td><td class="value">30.1 mmHg</td></tr><tr><td class="parameter-name">Wind Speed</td><td class="value">13.4 mph</td></tr><tr><td class="parameter-name">Max Wind Speed</td><td class="value">18.8 mph</td></tr><tr><td class="parameter-name">Wind Direction</td><td class="value">339 Degree</td></tr><tr><td class="parameter-name">Rain Intensity</td><td class="value">0.0 in/h</td></tr><tr><td class="parameter-name">Total Rain</td><td class="value">2.2 in</td></tr><tr><td class="parameter-name">Interval Rain</td><td class="value">0.0 in</td></tr><tr><td class="parameter-name">Water Temper...</td><td class="value">55.35 F</td></tr></tbody></table>

The website--

I am trying to pull each parameter value ie - for Air Temperature I want the 64.58.
Here is what i have tried so far -

RegExSearch=<td class="parameter-name">Air Temperature</td><td class="value">(?<number>.*)\s

and here are some other things I have tried -


The way i have it in the first example gives me everything after the word "Temperature"
The others I have tried, all give me "no data" in my result.
I am at a loss.

ps I have a picture, but can't remember how to attach it :(

Edited by willy800, 30 June 2015 - 03:41 PM.

BC AdBot (Login to Remove)


#2 willy800

  • Topic Starter

  • Members
  • 125 posts
  • Local time:04:09 PM

Posted 30 June 2015 - 06:44 PM

Finally, a friend came up with the answer.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users