klyn.regex.MatchResult.operator==
method

    public static operator==(left as MatchResult, right as String) as Boolean:

Description

Value equality with a string.

Parameters

Parameter | Description
--- | ---
`left` | Match result.
`right` | String to compare with.

Returns

True when the matched text equals the given string.

Example

    import klyn.regex

    assert MatchResult("abc") == "abc"