Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The RegEx for HTML tags does not match the HTML Headings tags #10

Closed
dineshb-qa opened this issue Nov 28, 2016 · 1 comment
Closed

The RegEx for HTML tags does not match the HTML Headings tags #10

dineshb-qa opened this issue Nov 28, 2016 · 1 comment

Comments

@dineshb-qa
Copy link

Steps to Reproduce :

  • Go to RegEx Site
  • Go to HTML tags section and enter the test string as, HTML Heading tag : <h1>Heading</h1> (this is one of the valid tags as per W3 School site)
  • Observe that the output returned is null
  • The RegEx should be : /^<([a-z][1-6]+)([^<]+)(?:>(.)</\1>|\s+/>)$/ in order to match the HTML Headings tag

Expected Result
The RegEx for HTML tag should match all the HTML tags

Actual Result
The RegEx for HTML tags does not match the HTML headings tags

@lukehaas
Copy link
Owner

Thanks @dineshb-qa the HTML regex has been updated now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants