modified regexp for getting tags