Thread:Project:Support desk/Regex for template names/reply (3)

Keep in mind first of all, that the parser is a little complicated, and probably doesn't match things in the way you think it does (source over here).

Your second regex is probably closer given that \w only matches ascii word characters, and we support fancier characters than that. I would expect (but am not sure) that  would all terminate an argument name.