Migrated regexps functionality into Tags class.