fixes #5103 still need to be escape the urlPattern case
Merge pull request #5280 from dotCMS/issue-5103-structure-text-field-validation-field-type-shows-to-default-value

fixes #5103