As I am not much good at regular expressions I thought I would share my
ignorance with others :) Here is the best I can do with regard to extracting
links from htmltext in fields - they only work on a single line and they do
not find links with variable whitespace as you may get in html web pages.

on html_DeconstructNameLink nextHtmlLine, @someText, @someLink
   -- <a name="/Users/david/Movies/crossingTheBridge.mp4">Crossing The
Bridge</a>

   put "<a name=" & quote & "([^>]*)" & quote & ">([^<]*)</a>" into someReg
   return matchText(nextHtmlLine, someReg, someLink, someText)
end html_DeconstructNameLink

on html_DeconstructRefLink nextHtmlLine, @someText, @someLink
   -- <a href="/Users/david/Movies/crossingTheBridge.mp4">Crossing The
Bridge</a>

   put "<a href=" & quote & "([^>]*)" & quote & ">([^<]*)</a>" into someReg
   return matchText(nextHtmlLine, someReg, someLink, someText)
end html_DeconstructRefLink

Is there a better way?
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to