Fixed regex, now works for basic inputs and textareas