regexUsername2 constant

String const regexUsername2

Username regex, must contain letters and numbers, can contain special characters, 6-18 characters.

Implementation

static const String regexUsername2 =
    '^(?![0-9]+\$)(?![a-zA-Z]+\$)[0-9A-Za-z\\W]{6,18}\$';