Improved TagManager regex.