Created
July 2, 2019 10:00
-
-
Save AfonsoTsukamoto/5058767c4802459b04a3849f97c63802 to your computer and use it in GitHub Desktop.
Keep the separator for a clojure split using lookahead+lookbehind
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
;; example to split on @ | |
(clojure.string/split "carolyne.jones@gnail.com" #"(?=@)|(?<=@)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment