Greetings.
I'm working with a proprietary database over an odbc connection. What I need to do is a series of find and replaces.
For instance the phone number are of formats (XXX) XXX-XXXX or XXX-XXX-XXXX or something else. what I want is to transform this into XXXXXXXXX. Running the REPLACE function a number of times could do this, but I was thinking a regular might be "betta stuff".
Anyone attempted this? If so, how might I be able to do this?
P.S. I didn't design the DB to hold phone numbers as text, so don't blame me.
"If it's stupid but works, it isn't stupid."
-Murphy's Military Laws
I'm working with a proprietary database over an odbc connection. What I need to do is a series of find and replaces.
For instance the phone number are of formats (XXX) XXX-XXXX or XXX-XXX-XXXX or something else. what I want is to transform this into XXXXXXXXX. Running the REPLACE function a number of times could do this, but I was thinking a regular might be "betta stuff".
Anyone attempted this? If so, how might I be able to do this?
P.S. I didn't design the DB to hold phone numbers as text, so don't blame me.
"If it's stupid but works, it isn't stupid."
-Murphy's Military Laws