Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.util/scala.util.matching/Regex/Match

Match

scala.util.matching.Regex.Match
See theMatch companion class
objectMatch

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 })

Attributes

Companion
class
Source
Regex.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
Match.type

Members list

Value members

Concrete methods

Attributes

Source
Regex.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp