Find all links in fld
Peter M. Brigham
pmbrig at gmail.com
Sat Jan 17 10:06:17 EST 2015
How about this:
on mouseup
put fld "fld1" into tList
replace space with cr in tList
filter tList with "http*"
put tList
end mouseup
Gives a list of all the URLs in fld 'fld1". Is that what you want?
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
On Jan 16, 2015, at 3:19 PM, Shawn Blc wrote:
> I'm still struggling with this, so I'm asking for a little help.
>
> I'm trying to extract the links from the field. All the links will start
> the same, but the last 5 digits will be different.
>
> *on* mouseUp
>
> *put* URL "http://mydomainA.com/rss.php" into tURL
>
> *put* tURL into fld "fld1"
>
> *find* string "https://www.domainB.com/show.php?l=0&u=156&id=" in fld
> "fld1"
>
> --- I'll need the whole URL
> https://www.domainB.com/show.php?l=0&u=156&id=xxxx
>
> -- notice the xxxx -- that changes from link to link
>
> *put* the foundText into tFound
>
> *put* tFound into fld "fld2"
>
> *end* mouseUp
>
>
> When I add a repeat it never stops and locks up LC. but I'm still missing
> the xxxx.
> _______________________________________________
> 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
More information about the use-livecode
mailing list