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