HTML5 > Character entity reference Favorite

Matches valid HTML character entity references. Named entities are not checked to see if they are in the list of valid names. While that is possible, it's not something that should be done with a regular expression.

Sample Matches
Text Result
Copyright: © 2015 ACME Corporation
Group #0
©
named
copy
match
Copyright: © 2015 ACME Corporation
Group #0
©
hex
A9
match
Copyright: © 2015 ACME Corporation
Group #0
©
dec
169
match
©
Group #0
©
hex
000000000a9
match
Match Groups
dec
decimal encoded codepoint
hex
hexadecimal encoded codepoint
named
named character
Notes

HTML 5 allows certain named entities to skip the trailing semicolon. This is NOT allowed by this regular expression.

For decimal and hexadecimal codepoints, the range is not checked, only the format.