Requirements for Validation Battle.net Tag

#1 - Aug. 17, 2012, 5:08 p.m.
Blizzard Post
What are the requirements for validation a Battle.net Tag? (Rules, Limits, etc)

I want to add some validation to my app that if a invalid Battle.net Tag was entered it will throw an error and not make the API request.

Found the solution for those that are still looking here it is:

$pattern = '/^[\p{L}\p{Mn}][\p{L}\p{Mn}0-9]{2,11}-[0-9]{4,5}+$/u';
Forum Avatar
Web & Mobile Team
#4 - Aug. 20, 2012, 3:19 a.m.
Blizzard Post
I don't have the strict requirements readily available to reference, but as Nagisan pointed out, there is a support link to reference.

My only comment is that the code (number part) that is assigned may be any number greater than. I've seen 3 digit codes out in the wild.