Advanced string handling for Sass
The following three functions are currently supported:
Will return a string with the every needle in the haystack replaced with replace
Will return a list split by the key. For instance, the string "Hello World"
split by " "
would return a list "Hello", "World"
. Returns false if it can't be split
Find the position of the needle in the haystack. Will return 0 if it's at the first position an -1 if the needle can't be found.
Finds the length of the string
Will place insert
into original
at character index
Will extract the substring from the given characters. e.g. str-extract("abcd", 2, -2) => "bc"
Will transform the string to uppercase
Will transform the string to lowercase