on master help sign in
Add small note referring people to the Regex library
8971b79Evan Czaplicki
libraries/String.elm+4
@@ -103,6 +103,8 @@ foldr = Native.String.foldr
103
103
104 split "," "cat,dog,cow" == ["cat","dog","cow"]
104 split "," "cat,dog,cow" == ["cat","dog","cow"]
105 split "/" "home/evan/Desktop/" == ["home","evan","Desktop"]
105 split "/" "home/evan/Desktop/" == ["home","evan","Desktop"]
106+
107+Use `Regex.split` if you need something more flexible.
106-}
108-}
107split : String -> String -> [String]
109split : String -> String -> [String]
108split = Native.String.split
110split = Native.String.split
@@ -241,6 +243,8 @@ all = Native.String.all
241 contains "the" "theory" == True
243 contains "the" "theory" == True
242 contains "hat" "theory" == False
244 contains "hat" "theory" == False
243 contains "THE" "theory" == False
245 contains "THE" "theory" == False
246+
247+Use `Regex.contains` if you need something more flexible.
244-}
248-}
245contains : String -> String -> Bool
249contains : String -> String -> Bool
246contains = Native.String.contains
250contains = Native.String.contains