extract by delimiter

Pierre Sahores psahores at free.fr
Tue Dec 28 18:15:04 EST 2010


Did you try to open your RSS feed source in using TextWrangler (free) and test what can be seen in picking the "show tab stops" and "show invisibles" items from the "text options" menu item ? There is certainly something used as an (invisible?) delimiter by the RSS readers...



Le 28 déc. 2010 à 23:58, Thomas McGrath III a écrit :

> I am stuck. I've been trying to extract text from an RSS feed and so far I have the information I need but am stuck at extracting it into a better format. Here is what I have so far:
> location city="Bethel Park" region="PA"   country="United States"
> units temperature="F" distance="mi" pressure="in" speed="mph"
> wind chill="21"   direction="250"   speed="10" 
> atmosphere humidity="51"  visibility="10"  pressure="30.04"  rising="1" 
> astronomy sunrise="7:39 am"   sunset="4:58 pm"
> condition  text="Cloudy"  code="26"  temp="30"  date="Tue, 28 Dec 2010 4:52 pm EST" 
> forecast day="Tue" date="28 Dec 2010" low="22" high="30" text="Mostly Cloudy" code="27" 
> forecast day="Wed" date="29 Dec 2010" low="25" high="32" text="Mostly Cloudy" code="28" 
> I can't delimit with space as "location city" has a space in it.
> I can't use = because then I get " "Bethel Park" region" instead of just "Bethel Park"
> I am trying to figure out how to exclude items in between " " and then replace space with "_"  and then use space to delimit.
> Any ideas on how to exclude between " "s ?
> Thanks for your help,
> -- Tom McGrath III
> http://lazyriver.on-rev.com
> 3mcgrath at comcast.net
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Pierre Sahores
mobile : (33) 6 03 95 77 70


More information about the Use-livecode mailing list