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



This particular expression is actually used in a php script I wrote, not
in RPG. Had I been in RPG, I probably would have used native %BIFs to
accomplish this.

Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi

Young i Professionals
http://www.youngiprofessionals.com



"Mark S. Waterbury" <mark.s.waterbury@xxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
07/16/2009 01:56 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc

Subject
Re: Using a regular expression to validate a file name






I have followed this thread for some time now.

IMHO, using a Regular Expression parser for this task is kind of like
using a bulldozer to move a few shovel-fulls of dirt.

Regular expression parsers are great for really complex pattern-matching
tasks.

But, for simple tasks, it seems to me it would be much simpler, and run
much faster, to just use %scan in RPG IV and write a hand-coded "parser"
to match the patterns.

That's my opinion.

Cheers,

Mark S. Waterbury

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.