klyn.regex.MatchResult.operator==
method
public static operator==(left as String, right as MatchResult) as Boolean:
Description
Value equality with a string.
import klyn.regex

assert "abc" == MatchResult("abc")
Parameters
  • left String to compare with.
  • right Match result.
Returns
True when the matched text equals the given string. ``` import klyn.regex assert "abc" == MatchResult("abc") ```