replaced regexes stuff with tags