Fix regex bug

Wrong parenthesis
Add one more test
Merge pull request #555 from OkayX6/fix-smart-tag-bugs

Fix regex bug