writeRegEx method
Tag based Regex writer. Note this method does not attempt to validate the RegEx expression supplied.
Implementation
void writeRegEx(String regex) {
_writeTag(tagRegularExpression);
_writeString(regex);
_builderHookImpl(false);
}