Merged near into main regex, restored original code to supply a message if necessary, added 'html 5' syntax.