matches

fun matches(target: String, pattern: String): Boolean

Returns whether pattern matches target, evaluated at the level on which this method is called.

Return

Boolean true if pattern matches target under this level

Since

5.2.0

Parameters

target

The string to test

pattern

The string to match against