다음을 통해 공유


Scanner.FindInLine Method

Definition

Overloads

FindInLine(String)

Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.

FindInLine(Pattern)

Attempts to find the next occurrence of the specified pattern ignoring delimiters.

FindInLine(String)

Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.

[Android.Runtime.Register("findInLine", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public string? FindInLine (string? pattern);
[<Android.Runtime.Register("findInLine", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
member this.FindInLine : string -> string

Parameters

pattern
String

a string specifying the pattern to search for

Returns

the text that matched the specified pattern

Attributes

Exceptions

if the Scanner is closed.

Remarks

Java documentation for java.util.Scanner.findInLine(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

FindInLine(Pattern)

Attempts to find the next occurrence of the specified pattern ignoring delimiters.

[Android.Runtime.Register("findInLine", "(Ljava/util/regex/Pattern;)Ljava/lang/String;", "")]
public string? FindInLine (Java.Util.Regex.Pattern? pattern);
[<Android.Runtime.Register("findInLine", "(Ljava/util/regex/Pattern;)Ljava/lang/String;", "")>]
member this.FindInLine : Java.Util.Regex.Pattern -> string

Parameters

pattern
Pattern

the pattern to scan for

Returns

the text that matched the specified pattern

Attributes

Exceptions

if the Scanner is closed.

Remarks

Java documentation for java.util.Scanner.findInLine(java.util.regex.Pattern).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to