Improved the tags regular expression to accept slashes