Trim a string (drop spaces, tabs and newlines at both sides).
Modulehakyll-4.17.0.0Haskell2010
Hakyll.Core.Util.String
Miscellaneous string manipulation functions.
- 5 values
- Packagehakyll-4.17.0.0
- Exports5
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceString.hs
value
replaceAll A simple (but inefficient) regex replace funcion
A simple regex split function. The resulting list will contain no empty strings.
Find the first instance of needle (must be non-empty) in haystack. We return the prefix of haystack before needle is matched.
Examples:
needlePrefix "cd" "abcde" = "ab"needlePrefix "ab" "abc" = ""needlePrefix "ab" "xxab" = "xx"needlePrefix "a" "xx" = "xx"Translate native Windows path separators \\ to / if present.