| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: RegEx question |
| From: | Sven E Olsson <lists at seedit dot info> |
| Date: | Fri, 31 Aug 2007 01:32:41 +0200 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <46D74652 dot 4070705 at stny dot rr dot com> |
Links could looks like this: <a class="blue" href="http://www.seedit.info"> <a href="http://www.seedit.info" title="Visit seedit.info"> There is also examples with Eventhandlers, so you could not search to the last ">" The only that is safe looks to be: href="http://www.seedit.info" and "href=" must be included, because the rest could just be text like: <a href="http://www.seedit.info">www.seedit.info</a> This return: href="http://www.seedit.info" - and then remove "href=" href=["]+...+["] --------- Sven E On 2007-08-31, at 00:36, Tom Russell wrote: > I need to parse some info from a web page but not sure how to regEx > it. > > Example would be: > > href="http://myworld.ebay.com/xxxxxxxxx/"> > > But I only need the stuff in the quotes. > > I assume my search pattern would be something like: > rg.SearchPattern="href="http:(\D+)>" > > Would this be correct? > > Thanks, > > Tom > > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Toggle checkbox using return key, Tim Jones |
|---|---|
| Next by Date: | Re: Toggle checkbox using return key, Rob |
| Previous by Thread: | Re: RegEx question, Rob |
| Next by Thread: | Re: RegEx question, Tom Russell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |