0

I'm trying to remove the two periods from a name like B.J. Smith using regexp_replace(name,'[.]','') but it's only removing the first period. I also tried regexp_replace(player,'([.])','') to no avail.

1
  • Does this answer help? Use the occurrences parameter to determine the number of matches to make. Commented Feb 7, 2021 at 3:50

1 Answer 1

2

Use the g flag to replace the matches globally.

regexp_replace('B.J. Smith', '\.', '', 'g')
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.