* updated regex * improved pattern test cases * resolved comment * removed `;` * updated pattern tests