mmircea16 Small refctoring: extracted method that computes the regexp to parse the tags