baddah
New User
Sep 13, 2007, 9:11 AM
Post #3 of 4
(7561 views)

Re: [KevinR] Finding Amount of digits Matching
[In reply to]

Can't Post


HI,Thanks for the reply. Sorry,i'll try to rephrase.I have a table of regular expressions(all represent phone numbers/codes).No i have a code,and i am traversing through the table and i want to find a match. I want my script to give me back all matches for a code(002577 in this case). 002577 has 6 digits,so it must look for all regular expressions where the first 6 digits match.Thus 002577[69][05] will match because the first 6 digits of the regular expression are the same.(It must not look at the [69][05] part,because the code i'm looking for only has 6 digits) 00257795[59] and 002577[69][69] will match for the same reasons.Their first 6 digits match the code i'm looking for.(002577) The script must just take the code(002577) and get the amount of digits(6) and look at the all the regular expressions i have in my table,but only the first 6 digits. I hope this makes more sense,Please let me know if it does not.i really would appreciate help with this. Thanks
