Created
February 21, 2020 21:58
-
-
Save BolajiOlajide/3c91576ef37bb5864d566dac70bb9197 to your computer and use it in GitHub Desktop.
postgres replace dots and + sign in gmail email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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