string|null
getHtmlPattern()
Converts the htmlPattern to a suitable format for HTML5 pattern. Example: /^[a-z]+$/ would be converted to [a-z]+ However, if options are specified, it cannot be converted. Pattern is also ignored if match=false since the pattern should then be reversed before application.
Return Value string|null