Skip to content

Instantly share code, notes, and snippets.

@BolajiOlajide
Created February 21, 2020 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BolajiOlajide/3c91576ef37bb5864d566dac70bb9197 to your computer and use it in GitHub Desktop.
Save BolajiOlajide/3c91576ef37bb5864d566dac70bb9197 to your computer and use it in GitHub Desktop.
postgres replace dots and + sign in gmail email
SELECT REGEXP_REPLACE('b.ol.aj.i+fafd@gmail.com', '(?!@)\+\w*|(?<!@gmail)\.', '', 'g'), 'b.ol.aj.i+fafd@gmail.com' as email;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment