matches Method

Purpose:

Compares string using regular expressions.

Syntax:

.matches(regularexpresson)

Comments: 

Example:

abc = "abc"

p abc.matches("abc")

1