[Zope] Scan for URLs from string

Jerome Alet alet@librelogiciel.com
Sat, 7 Dec 2002 21:23:41 +0100


--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

On Sat, Dec 07, 2002 at 07:14:08PM +0000, Peter Bengtsson wrote:
> I'm looking for a good regular expression that can spot URLs in a text 
> string.

the attached gzipped code "should" work for http protocol

hth

Jerome Alet

--gKMricLos+KVdGMg
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="r.gz"
Content-Transfer-Encoding: base64

H4sICIZY8j0AA3IA7Vltb5swEP6eX0G7pYvJC1m7bmqiiGTtpkWa2mrtJm3GmkhwFiQCCEhf
vf722QYCSUkzjKqiqgpSDNw9vrvnfD6ZV9L51PQlD//BV65ER6YtBVMsufORZY4lw5nppt2Q
Js7cNiTHlgZnp8fScPjtsFUxZ67jBVS1Upl7Fr4KPH0cOF7P266pnWkQuB1FoaP0BfXmzaD5
SzPQ6j1pAjm5AyrQWkBOJDbLAxKKaEYdsL9WNAa3e38BexK/pLJ0pGSa9Vpr/m7Vt+Q3NdBA
DLBKX00Gzc90jttdikNgt9Pf6SEgL4MIIYQgmloQRaU/JjN5MOL/A6kuPCsGANQ+UNcZ8rTU
F+JeLcy9usx9N7h2cQ8Ohke6yV0JmbTxpS/OoqJ22Bz1finCz9+msFJAkLrSZMEgmhzK2XaJ
q4ay2ZEoLyIFhh1gy8bBy7rcuC6VMF5/HHeKvdLmQERwZvDZwmOrO4uDh2l7SJPTXm0fiBGf
KlgLDAETeGWKq9OlbvqlJUjJGyQ54kZAUUCFlrri2z2ToG2ZFTiiSVUPYzoxLVwiJonljHVr
6vgBUEuyR3ODXc/xXew5JQpVZtI/dbBC7a4wDoPpFdJmVjAJy9Az+ojyELaS3xnmkSq93dMM
At+9R4m/BO5/QHCgsyn5hNXdNl3ObHQyPCKOaQA+cZYdcrwNVdsUAfFOgKkvgn7vedws5Kpw
C2fuwWn1NS+eYRRWvMpyGXYbaJ0tqyF5JlF5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