Logo

Parametric Search Appliance

This is custom script. Do not install updates.

 

Thunderstone Search Appliance Manual

<<Previous: Data From Field Example ↑Up: Data from Field Next>>: Data From Field Example

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: Jul 28 2017

<<Previous: Data From Field Example ↑Up: Data from Field Next>>: Data From Field Example
Page generated in 0.09 seconds.
2024-11-23 18:58:43 EST