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



You could look into using the C regular expression functions. In case
you aren't familiar with regular expressions, they allow you to specify
a pattern, in your case something like /.*\d{3}-\d{3}-\d{4}.*/, you can
then use the regular expression to scan a string for instances of the
pattern. The regexec function returns an array of offsets to the
locations in the string that matched the pattern. You can find the
documentation for the function in the ILE C/C++ for iSeries Run-Time
Library Functions manual, which is located here:
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c4156071.pdf
 
 
 
Joe Lee
 
Adventist Health
Senior Programmer/Analyst
Financial Team, IS Department
(916) 774-3347
e-mail: leejd@xxxxxx

>>> mallen@xxxxxxxx 03/12/2004 08:24:54 >>>
I've got a physical file (actually copy of a spool file) containing
phone
#'s in format xxx-xxx-xxxx. I need to send this to a software vendor
but
for privacy reasons I need to change all the phone #'s to "fictitous"
numbers i.e. change 706-678-9565 to 945-224-4848 or such. The phone
numbers
start in a various # of places in the file (i.e. some might start in
position 33 others 55, 87 etc.) I've been racking my brain for a quick
and
dirty way to this without having to manually edit the file. Any ideas
from
some of you genius' out there?

Mark Allen
IS Manager
Wilkes Telephone & Electric
11 W. Court Street
Washington, GA 30673
Phone: (706) 678-9565
Fax: (706) 678-1000



_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx 
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l 
or email: MIDRANGE-L-request@xxxxxxxxxxxx 
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l .



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.