On Feb 27, 2007, at 3:12 PM, Christian Miller wrote:
> On Feb 26, 2007, at 12:38 PM, Charles Yeomans wrote:
>>> Hi Norman, yes, I'm reading those entries from a file. Can you tell
>>> me why the RegExMatch won't loop through the entire line?
>>
>> It's not designed to do so. You need to loop yourself, if I
>> understand your question correctly.
>
> I'm no RegEx guru, but I thought if "greedy" was turned on, then when
> I searched, RegExMatch would find all matches for me.
No. When "greedy" is set, a RegEx object will look for the longest
possible match. Consider the following example.
Source = "(((foo)))"
Regular Expression = "\(.+\)"
With Greedy = true, the match string will be "(((foo)))". If Greedy
= false, then the match string will be "(((foo)".
------------------------
Charles Yeomans
http://www.declareSub.com/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>