Hi,

> Question:
> Where is this number coming from? Couldn't you just use a substr() based
> upon it's length and not deal with a regular expression?

        Its a bank account number coming from a database.  We're reformatting it
for ACH processing.  The number could be:

        23408234980423

        with a rule of remove 12453 from beginning, and remove 0423 from the end,
that would leave us with 2340823498.  The rule could also read to remove 234
from the beginning, and 43985 from the end, leaving us 08234980423.

        The length of the number is also dynamic.

        I guess I just found it easier to go over it with a couple regular
expressions, then got to thinking maybe I could combine it into one.  What
suggestion would you have?

-Dan Joseph


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to