× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm not sure how this bears out.
If I specify rc = regexec(regEx : findWithin : %Elem(match) : match(1) :
*zero);

I get

MATCH.RM_SO(1) = 10
MATCH.RM_SS(1) = 0
MATCH.RM_EO(1) = 13
MATCH.RM_ES(1) = 0
MATCH.RM_SO(2) = -1
MATCH.RM_SS(2) = 0
MATCH.RM_EO(2) = -1
MATCH.RM_ES(2) = 0
(array elements 3-5 are the same as 2)

If I read your message correctly, I tried ... :match(5): ...

MATCH.RM_SO(4) = 1077952576
MATCH.RM_SS(4) = 16448
MATCH.RM_EO(4) = 1077952576
MATCH.RM_ES(4) = 16448
MATCH.RM_SO(5) = 10
MATCH.RM_SS(5) = 0
MATCH.RM_EO(5) = 13
MATCH.RM_ES(5) = 0
(array elements 1-3 are the same as 4)

followed by a MCH3601 error.

In other words, parameter 4 is the starting element to place results.


--Loyd





On Wed, Feb 3, 2010 at 12:33 PM, Evan Harris <spanner@xxxxxxxxxx> wrote:

Hi Dennis

The stab in the dark looks to be right the way I read Bob's article and the
API documentation.

Consider Bob's statement: "The number of elements in this data structure
array must be greater than or equal to the value in parameter 3."

Also, the API documentation for parameter 3 says: "The nmatch value is the
number of substrings in string that the regexec() function should try to
match with subexpressions in preg."

I reckon you only get one match because you've only asked it for one.

Regards
Evan Harris


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.