realbasic-nug
[Top] [All Lists]

Re: RegEx question

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: RegEx question
From: Tom Russell <linuxrox at stny dot rr dot com>
Date: Thu, 30 Aug 2007 18:51:50 -0400
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> <D76587F6-C882-49DB-9122-A1606318C376 at declareSub dot com> <46D748C2 dot 7030105 at stny dot rr dot com>
Tom Russell wrote:
> Charles Yeomans wrote:
>   
>> On Aug 30, 2007, at 6:36 PM, 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?
>>>     
>>>       
>> What happened when you tried it?
>>
>> Charles Yeomans
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
>>
>>
>>   
>>     
> Im getting a syntax error. I think my quotes are screwy
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>
>
>   
Fixed the quote issue. Found out Im doing my regex before the content 
loaded into my socket.

It would probably be better to load my content into a string array 
rather than use the string itself? When I do my regex it pulls the first 
one it finds and its not even the one I want.

plus Im getting part of what I want: //www.ebay.com"

Fun, fun, fun....



_______________________________________________
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>