I have a field in a db that has serial numbers in it. the serial numbers are of variable length with combinations of numbers, characters, and some random symbols
examples:
123D0420003
1F3212222
*9993345F412*
FG345K0924567
the field length is as short as 7 characters and as long as 22.
it is a semi- smart number where four characters denote Vendor Week produced and Year produced but the four characters are not in the same location everytime.
Example 1) 123D0420003 - 123 D042 0003 - D = VendorID 04 = 4th week 2 = 2002
Example 2) 1F3212222 - 1 F321 2222 - F = VendorID 32 = 32nd week 1 = 2001
I am trying to use a pattern matching function and then strip out the pertinent values
I have identified a consistent pattern of Number Letter Number Number Number but have not been successful in getting the function to perform.
Any help would be greatly appreciated before I go off the deep end
Thanks
examples:
123D0420003
1F3212222
*9993345F412*
FG345K0924567
the field length is as short as 7 characters and as long as 22.
it is a semi- smart number where four characters denote Vendor Week produced and Year produced but the four characters are not in the same location everytime.
Example 1) 123D0420003 - 123 D042 0003 - D = VendorID 04 = 4th week 2 = 2002
Example 2) 1F3212222 - 1 F321 2222 - F = VendorID 32 = 32nd week 1 = 2001
I am trying to use a pattern matching function and then strip out the pertinent values
I have identified a consistent pattern of Number Letter Number Number Number but have not been successful in getting the function to perform.
Any help would be greatly appreciated before I go off the deep end
Thanks