realbasic-nug
[Top] [All Lists]

Re: finding links with RegEx?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: finding links with RegEx?
From: Joel Rosenblum <pyropostal at mac dot com>
Date: Thu, 28 Feb 2002 00:13:55 -0500
This will enable you to catch also flash <param name=movie value="xxx.swf">:

But, the value parameter is common for tags that don't use URLs, so you may have a value=true. Also, what does this mean: "(?blah)" ? Does that mean you don't care if you find (blah) or not? Why not use "(blah)?" ?

<\s*(?=[ABIP])\w+\s+
([-=\w./:@&';\(\)%]+\s+)*(?=[VSBH])(src|background|href|
value)\s*=\s*[""']?([-=?\w./:@&';\(\)%]+)[^>]*>

Btw, there are URLs with spaces in them which work in web browsers, so don't be so strict.



<Prev in Thread] Current Thread [Next in Thread>