Thank you for that interesting article. Although it is interesting it does not help here, because at the end it still uses negative look ahead. It does not present a solution to get around negative look ahead.

I do not think that PHP or Python helps unless I can call it efficiently from RPG.

That makes sense Thomas - problem is though that I suspect even if you get it going it will be slower than Christmas.

That is correct (depends on the expression), but if one wants to use regular expressions, he should be aware of that it may take significant more time.

Thomas.

-----Ursprüngliche Nachricht-----
Von: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] Im Auftrag von Jon Paris
Gesendet: Montag, 29. Juni 2015 22:20
An: Wdsci-L
Betreff: Re: [WDSCI-L] Bulk source search ignoring commented-out code (iSphere special?)

That makes sense Thomas - problem is though that I suspect even if you get it going it will be slower than Christmas.

Do the PHP or Python variants have what you want?

There's an interesting piece on implementing at least negative versions here http://yacsharpblog.blogspot.ca/2008/09/regular-expressions-in-c-negative-look.html - don't know if that helps.



Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Jun 29, 2015, at 3:54 PM, Tools/400 <thomas.raddatz@xxxxxxxxxxx> wrote:



Hi Jon,

I assume that Scott uses the regular expression functions of the IBM i
C library. That is what I do at the moment. The problem is that the
IBM regular expression functions do not support look-ahead and
look-behind, which were required for solving the "bulk source search" problem.

That is why I thought about to use the GNU library before I noticed
that this library does not support look-ahead and look-behind, too.

Thomas.

Am 29.06.2015 um 21:41 schrieb Jon Paris:
Why not just call the library function from RPG Thomas - why bother with Perl?

Scott has an example program here:

http://www2.systeminetwork.com/code/index.cfm?fuseaction=ShowCodeInFi
le&Year=2012&Month=10&Page=011&HostType=PC&FileType=PC&PCName=regexde
mo.rpgle.txt&HostName=REGEXDEMO


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Jun 29, 2015, at 3:10 PM, Tools/400 <thomas.raddatz-a9TbBav64t4b1SvskN2V4Q@xxxxxxxxxxxxxxxx> wrote:



Hi Buck,

Is it possible to call Perl from RPG? I have to call the regex
function for each line of a source member!

Thomas.

Am 29.06.2015 um 19:32 schrieb Buck Calabro:
On 6/29/2015 12:43 PM, Tools/400 wrote:

I am open for any suggestions how to get look-ahead/look-behind to
the IBM i and integrated into the iSphere plug-in. The problem is,
that I need to call regcomp() and regexec() from a RPG module. So
the functions must be provided by a service program that I can
bind to the FNDSTR service program.

Hi Thomas,
I am quite busy at work and have not completed my research. I was
looking at Perl Compatible Regular Expressions (PCRE)
http://www.pcre.org/


--
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-Zwy7GipZuJhWk0Htik3J/w@xxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request-Zwy7GipZuJhWk0Htik3J/w@xxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.


--
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@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.

--
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@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender.


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.