Pages

Tuesday, November 28, 2017

Mismatch Double, Single Quotes Online Code Checker / Formatter





This is a simple online quotes mismatch inspector that works for both single and double quotes. It works by break on quotes and numbering the them for quick visual inspection. It's not that sophisticated but gives you a quick visual inspection of paired quotes.





Cut and paste
alert('Say Hello to my li'l friend"); \\single quote - error in Javascript 
yields
alert('Say Hello to my li'l friend
   1.  1 
           ); \\single quote - error in Javascript 

Quotes Mismatch Inspector
Paste your code here


CHECK NOW for mismatched quotes


Results
  1. If you have even number of quotes then you are good.
  2. If you have odd number of quotes then you have a potential issue.


Original Mismatch Inspector
Goto my original post, it combines double and single quotes together.



Regex Mismatch Inspector
Goto my regex post  


Check you code online
More common languages have lint tools;



Update 2023

Regex101.com my Mismatch Quotes Regex

No comments:

Post a Comment