Try this:
on mouseUp
put text of fld 1 into tText
replace CR with space in tText
replace quote with space in tText
replace "https://" with ("--myTag--" & "https://") in tText
replace space with CR in tText
replace "--myTag--" with CR in tText
filter tText with "https://" & "*"
put tText into fld 2 -- should be a list of URLs
end mouseUp
Phil
On 1/16/15 12: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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
Phil Davis
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode