object Match
An extractor object for Matches, yielding the matched string.
An extractor object for Matches, yielding the matched string.
This can be used to help writing replacer functions when you are not interested in match data. For example:
import scala.util.matching.Regex.Match
"""\w+""".r replaceAllIn ("A simple example.", _ match { case Match(s) => s.toUpperCase })
- Companion
- class