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: Thomas Reed <thomasareed at earthlink dot net>
Date: Wed, 27 Feb 2002 19:20:28 -0600
Okay, with all the suggestions, I've put together a regular expression
that appears to work -- but as I don't feel 100% comfortable with
building regular expressions, I'd like to run it by folks and see if
anyone can find any problems with it.  Here's what I'm doing:

  aRegEx.SearchPattern = "<[^>]*(src|
background|href)[\s\n]*=[\s\n]*""?([^\s""]+)[\s""][^>]*>"

-Thomas

Personal web page:                 http://home.earthlink.net/~thomasareed/
My shareware:            http://home.earthlink.net/~thomasareed/shareware/
Pixel Pen web pub. guide: http://home.earthlink.net/~thomasareed/pixelpen/

Any closet is a walk-in closet if you try hard enough.



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