How to validate pattern matching in textarea?
HTML5 <textarea> element does not support the pattern attribute. See the MDN doc for allowed <textarea> attributes. You may need to define this functionality yourself. Or follow the traditional HTML 4 practice of defining a JavaScript/jQuery function to do this.