I have an address string (ex. Rural Route 12 Box 204) that I need to break into individual address components - i.e. Rural Route 12 as the street and 204 as the box.
The easiest way I can see to do this is to start reading the string at the beginning, somehow get the end position of the first set of numbers and consider everything before it to be the street (Rural Route 12).
Then start reading the string at the end of the string, somehow get the beginning position of the last set of numbers and consider everything after it to be the box (204).
What I can't figure out is how to accomplish this in PL/SQL. Any ideas??? Or better suggestion???
Thanks in advance!
The easiest way I can see to do this is to start reading the string at the beginning, somehow get the end position of the first set of numbers and consider everything before it to be the street (Rural Route 12).
Then start reading the string at the end of the string, somehow get the beginning position of the last set of numbers and consider everything after it to be the box (204).
What I can't figure out is how to accomplish this in PL/SQL. Any ideas??? Or better suggestion???
Thanks in advance!