Last active
July 27, 2021 12:12
-
-
Save T99/292fdf2ebfde22033dfb929cad849e1b to your computer and use it in GitHub Desktop.
Broken/Improperly-escaped quote character regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Matches broken 'quot' escaped strings (i.e. '"' characters). | |
((^|[^&a-zA-Z])quot($|[^;a-zA-Z])|(^|[^&a-zA-Z])quot;|"($|[^;a-zA-Z])) | |
// Matches: | |
// - quot | |
// - quot; | |
// - " | |
// Does not match: | |
// - quote | |
// - quotient | |
// - unquote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment