I have the following regular expression:

This expression test as true against the following string:
MDB MO3-09 Final.PDF
at http://www.regular-expressions.info/javascriptexample.html

I run the same expression and string through the iSeries RegExp APIs and it fails(returns 1).

Does anyone have any idea where there is a online test that matches the IBM APIs or can figure out what I am doing incorrectly?

BTW: The OCEAN conference was great!

My program works with another expression to test email addresses.


/*---( Compile pattern )---*/
rc = regcomp(&preg, wrkPattern, REG_EXTENDED);
if (rc != 0) {
regerror(rc, &preg, errMsg, sizeof(errMsg));
PatError(100, (char *) pattern, (char *) errMsg);


if (matchString != inpString) {
free((void *) matchString);
matchString = NULL;
return (0);

/*---( Run Pattern )---*/
if ( (rc = regexec(&preg, matchString, nmatch, pmatch, 0)) != 0 ) {
regerror(rc, &preg, errMsg, sizeof(errMsg));

This thread ...


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

This mailing list archive is Copyright 1997-2019 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].