Well if you want to use the SQL REGEXPR_* functions then no because its SQL. But it can be as simple as doing a exec sql values( regexpr_*() ); or you can put these in your selects but the member type must still be SQLRPGLE. Why is there a hang up on coding a SQLRPGLE member?

-Matt


-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Justin Taylor
Sent: Wednesday, February 7, 2018 9:26 AM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: Regex INSTR, REPLACE, SUBSTRING

I have an RPGLE service program that does regex matching (from an old article in iProDev mag). SQL offers regex INSTR, REPLACE and SUBSTRING. Is that something that can be done practically from RPGLE, without SQL?

TIA
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_rpg400-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=HzjwFsVQ9sUQ3KMGSu9wpySgcI1XDM_XbExTcAsUYoM&s=dTWDMUPReHlQO9l5hb3WBkji_ONgbSOhpbk3ryb1Xe0&e=
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_rpg400-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=HzjwFsVQ9sUQ3KMGSu9wpySgcI1XDM_XbExTcAsUYoM&s=945HpGXGayZ6YB16nC67myNAshlo6XKAkABpCQ7xUjU&e=.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://urldefense.proofpoint.com/v2/url?u=http-3A__amzn.to_2dEadiD&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=HzjwFsVQ9sUQ3KMGSu9wpySgcI1XDM_XbExTcAsUYoM&s=05H5SsHpDNP0W8I1UjlU9H9d7jUEP9YO4WoTFDjPtwA&e=

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