Regexes

org.specs2.text.Regexes$
See theRegexes companion trait
object Regexes extends Regexes

Attributes

Companion
trait
Graph
Supertypes
trait Regexes
class Object
trait Matchable
class Any
Self type
Regexes.type

Members list

Extensions

Inherited extensions

extension (p: Pattern)(p: Pattern)
def regexPart: String

Attributes

Inherited from:
Regexes
extension (r: Regex)(r: Regex)
def matches(s: String): Boolean

Attributes

Inherited from:
Regexes
extension (s: String)(s: String)
infix def matchesSafely(p: String, enclosing: String): Boolean

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

Attributes

Inherited from:
Regexes
def regexPart: String

Attributes

Returns

a regular expression String matching 's' inside another string, possibly multi-string

Inherited from:
Regexes