Wrangling with SQL regular expressions

I have been doing some data wrangling recently. One problem I worked through was how to find all the instances of a new line character that had made it’s way into our database.

After some researching the query looked like this

Then I asked myself if I could strip out this character. Hmm.. So I came up with this –

I would have liked to use this in an update statement but I couldn’t crack that last piece of the puzzle. Can you?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s