Hi I need to transform the following string as follows:
Before:
6621 Lake Valley DrMemphis, TN 38141
After:
6621 Lake Valley Dr
Additional ways the data comes in:
143 Evergreen Forest Court (this one is fine as is)
Need to extract address only for these as well:
326 Hambrick Park Fayetteville, GA 30215RE: Owner's Policy - 112 Shagbark Ln Mooresville, NC 28115RE: Owner's Policy - 540 Clearbrook Dr Covington, GA 30016Closed 9/1/21 4421 Home Stakes Dr Parkton, NC 28371RP 9/16- 352 Hampton St Elloree, SC 29047RP: 9/15- 124 Lake Grove Rd Simpsonville, SC 29681FHA 3/2/22- 6083 Holiday Blvd Forest Park, GA 30297RD 10/1/21 Roxanne Sellers- 311 Woodbrook Ln Marietta, GA 300684104 Flat Trl- Ricardo Reeder
How can I accomplish this using Snowflake SQL? I'm assuming regex_replace is in order? Can anybody help me out?