If you are using the C regular expressions API, then you are not using
PCRE, it is much closer to GNU regular expressions which are far more
limited. In fact I have not really been able to find good documentation on
what is supported. If you want a more robust regular expression like the
ones you can test at regex101.com, you should use the ones available in
International Components for Unicode. It is not fully PCRE, but much
closer. I suppose you could search for the service program and use ICU if
it is there, and the regular C API's if it is not.

On Fri, Nov 1, 2019 at 12:30 PM Tools/400 <thomas.raddatz@xxxxxxxxxxx>
wrote:

Expression "dcl-f\s+filea" did not work for me using iSphere search. I
did just a short test and I will debug that later on.

But "dcl-f[ ]+filea" or "dcl-f +filea" worked well.

Thomas.

Am 01.11.2019 um 17:16 schrieb David Gibbs via WDSCI-L:
On Fri, Nov 1, 2019 at 11:11 AM Kerwin Crawford via WDSCI-L
<wdsci-l@xxxxxxxxxxxxxxxxxx> wrote:
In the source it could have been coded several ways, three simple
examples below:
dcl-f filea
dcl-f filea
dcl-f filea

I have been looking at Regular expression but cannot figure it out.

A good regex for that would be something like: 'dcl-f\s+filea'.

That would search for 'dcl-f', one or more whitespace characters, then
'filea'.

david




--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/wdsci-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


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