Matcher.RequireEnd Method

Definition

Returns true if more input could change a positive match into a negative one.

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

Returns

true iff more input could change a positive match into a negative one.

Attributes

Remarks

Returns true if more input could change a positive match into a negative one.

If this method returns true, and a match was found, then more input could cause the match to be lost. If this method returns false and a match was found, then more input might change the match but the match won't be lost. If a match was not found, then requireEnd has no meaning.

Added in 1.5.

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

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