Created
August 24, 2015 18:07
-
-
Save yogthos/c7d9a4498ab312b1aa45 to your computer and use it in GitHub Desktop.
ClojureScript re-find and clojure.string/replace inconsistency
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
;;Clojure | |
(re-find #"(?i)ol" "HOLA") | |
;=>"OL" | |
(clojure.string/replace "HOLA" #"(?i)ol" "EY") | |
;=>"HEYA" | |
;;ClojureScript | |
(re-find #"(?i)ol" "HOLA") | |
;=>"OL" | |
(clojure.string/replace "HOLA" #"(?i)ol" "EY") | |
;=>"HOLA" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment