public property pattern as String:
Regular-expression source. Assigning a new value recompiles the expression before its next use.
regex = RegEx("^a$") regex.pattern = "^b$" assert regex.matches("b")