Testing tagName for form elements using regex. Thanks @cubiq