Data From Field Example - Grabbing Price from Text

The target site might not be organized enough to stick the Price value in a meta header. If every page contains text in the format Price: $19.95, Data From Field can key in on that.

  • REX Search: Price:=\space+\$\P=[0-9\.]+

  • Replace: (Empty)

  • From Field: Text

  • From Meta Field: (Empty)

  • To Field: Price

Notice that we use the field Text as the source, not HTML. By operating on the formatted text instead of the raw HTML source, it allows proper operation even if the HTML source uses things like Price: <b>$19.95</b> or <td>Price:</td><td>$19.95</td>.


Copyright © Thunderstone Software     Last updated: Nov 8 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.