object Regex
- Source
- Regex.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Regex
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def apply[A](pattern: Pattern, group: Int)(implicit arg0: GroupDecoder[A]): Regex[DecodeResult[A]]
Turns the specified pattern into a Regex.
Turns the specified pattern into a Regex.
Decoding is achieved by applying whatever GroupDecoder is in scope for
A
on group indexgroup
of each match.This method is made with literals in mind. Should you be working with other types (such as non-literal strings, for instance), kantan.regex.ops.CompilerOps might prove more helpful.
- def apply[A](pattern: Pattern)(implicit arg0: MatchDecoder[A]): Regex[DecodeResult[A]]
Turns the specified pattern into a Regex.
Turns the specified pattern into a Regex.
Decoding is achieved by applying whatever MatchDecoder is in scope for
A
on each match.This method is made with literals in mind. Should you be working with other types (such as non-literal strings, for instance), kantan.regex.ops.CompilerOps might prove more helpful.