matches


Description:

public static bool matches (string s, string pattern)

Returns true when the pattern matches the input string.

Invalid patterns return false.

Parameters:

s

input string.

pattern

regular expression pattern.

Returns:

true if matched.