On Jan 22, 2007, at 1:29 PM, Chuck Pelto wrote:


On Jan 22, 2007, at 11:09 AM, Charles Yeomans wrote:


On Jan 22, 2007, at 12:50 PM, Chuck Pelto wrote:


On Jan 22, 2007, at 8:55 AM, Phil Heycock wrote:

rg.Options.Greedy = False

No joy....

Same result. Only 1 is returned by theMatch.SubExpressionCount.


This is how RegEx.Search works. If you want to find all matches, you'll need to call Search more than once.

So.....

....what is the functionality of SubExpressionCount?

In a regular expression you can define subexpressions using parentheses. You then use the Subexpression methods of a RegExMatch object to get the matches of the subexpressions.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to