2015-07-24 15:32:24 +02:00
|
|
|
with builtins;
|
|
|
|
|
|
|
|
[ (replaceStrings ["o"] ["a"] "foobar")
|
|
|
|
(replaceStrings ["o"] [""] "foobar")
|
|
|
|
(replaceStrings ["oo"] ["u"] "foobar")
|
|
|
|
(replaceStrings ["oo" "a"] ["a" "oo"] "foobar")
|
|
|
|
(replaceStrings ["oo" "oo"] ["u" "i"] "foobar")
|
2018-02-19 16:52:33 +01:00
|
|
|
(replaceStrings [""] ["X"] "abc")
|
|
|
|
(replaceStrings [""] ["X"] "")
|
|
|
|
(replaceStrings ["-"] ["_"] "a-b")
|
2015-07-24 15:32:24 +02:00
|
|
|
]
|