trait Regexes
This trait provides utility functions for working with regexes
- Companion:
- object
Extensions
Extensions
extension (p: Pattern)
extension (r: Regex)
extension (s: String)
matchesSafely a pattern p. If p cannot be compiled, then it is quoted if the string s is enclosed with characters, they can be excluded before the quotation is done
matchesSafely a pattern p. If p cannot be compiled, then it is quoted if the string s is enclosed with characters, they can be excluded before the quotation is done