Nintendo Network ID Regex

With the launch of the Wii U, you may need to do some validation against the new Nintendo Network ID. The rules for the ID are as follows:
  • Use between 6 and 16 characters. You can use numbers, letters, periods, dashes, and underscores.
  • You cannot use punctuation as the first or last character of your ID. You also cannot use two or more punctuation in a row.
Here is the regex;
^([a-z]([a-z0-9]|(?<![\-\_\.])[\-\_\.]){4,14}[a-z])$

also ensure that you're doing a case insensitive check

web development nintendo network id regex regular expression

Responses

No comments posted yet. Why not be the first to have your say?
Add your comment:
Name *:  Members, please LOGIN
Email:  We use this to display your Gravatar.

Sign in with
Comment *:
Most used tags
pc , discussion , community , web development , planning , wiki , ps4 , ps3 , starbound , beta ,
(0.8903/d/web6)