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


  • Subject: RE: Using regex()
  • From: "Danny Rodius" <danny.rodius@xxxxxxxxx>
  • Date: Wed, 6 Dec 2017 08:45:02 +0100
  • Ironport-phdr: 9a23:CddFeR/XJcM3Ev9uRHKM819IXTAuvvDOBiVQ1KB21O0cTK2v8tzYMVDF4r011RmSDNWds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2e2//57ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMsrrQ7ApQjSi97lkRwP0iCkJMD459XvYis12jKlGpB6sqBhyz4vSbYqINvRxY7ndcMsaS2RfUMZeVTFPDI2/YYQAE+UPMuFWr5XmqlsSrxa+ChWgCP3zxjNWgHL9wK000/4mEQHDxAEsEdwAv27SrNXzNKYZTPy7zK7VwjXCcvNWwjnx45XPfx88u/6MW7RwcMrLxUk1EAPKk1SQqZH+Pz6OzeQNsGia7+x+WuKzkWIosB9+ryGpy8wxhIfJgYcVxUrF9SV/2Is1INy4R1NhYdG+FptQuD+VO5FqTcMlRmFkoDw1yrgctp+6eygKzo4ryALYa/yCa4SH+BfjVeeXITtimHJlf6qziAuz8Ue60eLzSNW030hRripej9nDqnMN1wfJ5siBVPR94kGs0iuM2QDL8uxIPEQ5mKXBJ5MjwbM8jIcfvETAEyPsl0j7irKdeF8+9eiy8evnZ63rppqbN4BplA7zKr8umsmjAeQgNQgOQnSb9fy81LL9+U35R61HgPMsnanftpDbJd4Vq7ChDw9U1IYs9Qq/Ai+73NkcknQLNlBIdRGdg4T0O1zDI+r0APinj1SpijhrxvTGPrP7ApXKK3jOiKrucqx7605ayAs/18pf55VJBbEAPfLzQVT8tMfbDh45NQy73frnBM9m2YwAQW6PGLOWMLvOsV+U4eIiO/OMZJcauDvyN/Qp++fijXsilF8YfKmmwIEXZ2q+HvRpPUqVe2bjgtAEETRCgwwlUea/iEGeSSUBIDG2Xrkg/Xc+CY68BIHMS8amh7nG2S66GphfYCdCC0uQEHHmcMKeQ/hQMHrXJpxdlWlOGoKZZMc5zxahrgb/zrthIaLT/GUEtZ+r9fJQr+yboVEbznsoV5zV2meBB2BPk3kJSiQCne816Rhn0ljfifA9h9RdFNBJ7vVGX0ExMpuKnMJgDNWnEC7IeNGYAGyhTtS7Gnt5Gt44xdkfJVx6F9S/lTjY3DusDqNTnbHdV898yb7Vw3Wkf5U18H3BzqR00wgr
  • List-archive: <https://archive.midrange.com/rpg400-l/>
  • List-help: <mailto:rpg400-l-request@midrange.com?subject=help>
  • List-id: "RPG programming on the IBM i \(AS/400 and iSeries\)" <rpg400-l.midrange.com>
  • List-post: <mailto:rpg400-l@midrange.com>
  • List-subscribe: <https://lists.midrange.com/mailman/listinfo/rpg400-l>, <mailto:rpg400-l-request@midrange.com?subject=subscribe>
  • List-unsubscribe: <https://lists.midrange.com/mailman/options/rpg400-l>, <mailto:rpg400-l-request@midrange.com?subject=unsubscribe>

Hi David,

Thanks for this, but could you provide the full SQL statement.

BR
Danny
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of David
Gibbs
Sent: dinsdag 5 december 2017 15:39
To: RPG programming on the IBM i (AS/400 and iSeries)
<rpg400-l@xxxxxxxxxxxx>
Subject: Re: Using regex()

On 12/5/2017 8:09 AM, Danny Rodius wrote:
Have checked these scalar functions out. However a compare is not
included. Need to check if an email is valid.

Can you give an example of the expression & data and results you would like?

I found the REGEXP_INSTR function will tell me if a character field matches
the expression

Here's a really basic example I've used in the past ...

values(regexp_instr(
'david@xxxxxxxxxxxx',
'[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}',
1,
1,
0,
'i'));

The returned value is 1.

david
--
David Gibbs
midrange.com

IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding 615 miles (Yes, you read that right) in the American Diabetes
Association's Tour de Cure to raise money for diabetes research, education,
advocacy, and awareness. You can make a tax deductible donation to my ride
by visiting https://list.diabetessucks.net.

See where I get my donations from ... visit
https://lsteml.diabetessucks.net/map for an interactive map (it's a geeky
thing).

I may have diabetes, but diabetes doesn't have me!
--
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://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD


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