다음을 통해 공유


Matcher.LookingAt Method

Definition

Attempts to match the input sequence, starting at the beginning of the region, against the pattern.

[Android.Runtime.Register("lookingAt", "()Z", "")]
public bool LookingAt ();
[<Android.Runtime.Register("lookingAt", "()Z", "")>]
member this.LookingAt : unit -> bool

Returns

true if, and only if, a prefix of the input sequence matches this matcher's pattern

Attributes

Remarks

Attempts to match the input sequence, starting at the beginning of the region, against the pattern.

Like the #matches matches method, this method always starts at the beginning of the region; unlike that method, it does not require that the entire region be matched.

If the match succeeds then more information can be obtained via the start, end, and group methods.

Java documentation for java.util.regex.Matcher.lookingAt().

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