× 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.



Luc,

Even with extended it (the \w) did not work. I did needed it for {n,m}
patterns to work.

So far I "solved" the \w by first replacing it in the pattern by
[a-zA-Z0-9] but I'm just curious about the background of the dialect
used on iSeries (and why Apache on iSeries would have a different one,
don't they both use the C functions ?)

Also knowing about "greedy" options is important... can they be
specified or not ?

Kind regards,
Paul

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Luc.PITTOORS@xxxxxxx
Sent: woensdag 9 juli 2008 12:23
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Regular expressions - which taste ?

Paul,

The difference lies -I think- in the "Basic" vs "Extended" form of
regular expressions.
See also p.e. http://en.wikipedia.org/wiki/Regular_expression

On the regcomp, use REG_BASIC (or REG_ICASE )
Or use REG_EXTENDED (REG_ICASEX) with the full [A-Za-z0-9] notation.

Kind Regards
luc


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.