Pattern pattern = Pattern.compile("");I just need to know a way to check to see if a given string matches what is considered a "valid" username for legit minecraft clients. So far I know that it can contain up to 16 characters, only having alpha-numeric characters and underscores. Sorry if this is a dumb question, but I've never quite been able to work out Regex patterns very well. Currently also trying to find out if the naming standard has changed any with the introduction of non-english characters and what-not @.@
Well, I tried figuring out what the new standards are to date, but apparently regex and java plugins have nothing to with programming and was utterly shunned on stackoverflow, so I got nothing on there. Happen to know if they're still the same?
I'm kinda guessing it'll be something like this:
Pattern pattern = Pattern.compile("[A-Za-z0-9_]{2,16}");But then again, I suck at regex.