Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : Using regex to filter content


brent
07-21-2005, 11:39 PM
This is GOT to be somewhere that I'm too stupid to find - a simple example would be loverly...

My geek-level is Mechanical Engineer. I'm shit-hot at building an 80 component 3d CAD model of a 250 tonne rotary press tool including all the CNC machining profiles and EDMed surfaces... but not very clever at scripting.

How do I convince Sunrise to run a regex on the local weather

http://www.bom.gov.au/cgi-bin/wrap_fwo.pl?IDV10450.txt

so that it only returns everything afer the word Forecast?

I think it's something to do with anchor.link and something to do with var regexp = but that's as far as I've got.

Laurens
07-22-2005, 12:42 AM
How do I convince Sunrise to run a regex on the local weather

Unfortunately, you can't. It's not possible to filter the actual content (i.e. the text itself) of a page through scripting. Scripting can only be used to filter and rewrite llinks, using Regular Expressions for matching link URLs.

hacker
07-22-2005, 03:04 AM
Try using Sitescooper (http://www.sitescooper.org). It was designed for exactly this purpose (and supports quite a few other file formats, including Plucker).

macrotor
07-22-2005, 11:27 AM
hacker beat me to the punch. I can vouch that Sitescooper does exactly what you need. It'll even export formatted html so that you can then use any Palm encoder of your choice (Plucker, iSilo, etc...)