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/MatchData

MatchData

scala.util.matching.Regex.MatchData

This class provides methods to access the details of a match.

Attributes

Source
Regex.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Known subtypes
classMatch

Members list

Value members

Abstract methods

defend:Int

The index following the last matched character, or -1 if nothing was matched.

The index following the last matched character, or -1 if nothing was matched.

Attributes

Source
Regex.scala
defend(i:Int):Int

The index following the last matched character in groupi, or -1 if nothing was matched for that group.

The index following the last matched character in groupi, or -1 if nothing was matched for that group.

Attributes

Source
Regex.scala

The number of capturing groups in the pattern.

The number of capturing groups in the pattern. (For a given successful match, some of those groups may not have matched any input.)

Attributes

Source
Regex.scala
protecteddefmatcher:Matcher

Basically, wraps a platform Matcher.

Basically, wraps a platform Matcher.

Attributes

Source
Regex.scala

The index of the first matched character, or -1 if nothing was matched

The index of the first matched character, or -1 if nothing was matched

Attributes

Source
Regex.scala
defstart(i:Int):Int

The index of the first matched character in groupi, or -1 if nothing was matched for that group.

The index of the first matched character in groupi, or -1 if nothing was matched for that group.

Attributes

Source
Regex.scala

Concrete methods

Returns char sequence after last character of match, ornull if nothing was matched.

Returns char sequence after last character of match, ornull if nothing was matched.

Attributes

Source
Regex.scala

The char sequence after last character of match in groupi, ornull if nothing was matched for that group.

The char sequence after last character of match in groupi, ornull if nothing was matched for that group.

Attributes

Source
Regex.scala

The char sequence before first character of match, ornull if nothing was matched.

The char sequence before first character of match, ornull if nothing was matched.

Attributes

Source
Regex.scala

The char sequence before first character of match in groupi, ornull if nothing was matched for that group.

The char sequence before first character of match in groupi, ornull if nothing was matched for that group.

Attributes

Source
Regex.scala

The matched string in groupi, ornull if nothing was matched.

The matched string in groupi, ornull if nothing was matched.

Attributes

Source
Regex.scala

Returns the group with the given name.

Returns the group with the given name.

Uses explicit group names when supplied; otherwise, queries the underlying implementation for inline named groups. Not all platforms support inline group names.

Value parameters

id

The group name

Attributes

Returns

The requested group

Throws

IllegalArgumentException if the requested group name is not defined

Source
Regex.scala

The matched string, ornull if nothing was matched.

The matched string, ornull if nothing was matched.

Attributes

Source
Regex.scala

All capturing groups, i.e., not including group(0).

All capturing groups, i.e., not including group(0).

Attributes

Source
Regex.scala
overridedeftoString:String

The matched string; equivalent tomatched.toString.

The matched string; equivalent tomatched.toString.

Attributes

Definition Classes
Source
Regex.scala

Abstract fields

The source from which the match originated

The source from which the match originated

Attributes

Source
Regex.scala

Deprecated fields

The names of the groups, or an empty sequence if none defined

The names of the groups, or an empty sequence if none defined

Attributes

Deprecated
[Since version 2.13.7]groupNames does not include inline group names, and should not be used anymore
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