1. any number of chars
^[A-Za-z ][A-Za-z0-9!@#$%^&* ]*$
<br/><br/>

2. max 20 chars allows space & special chars
^[A-Za-z ][A-Za-z0-9!@#$%^&* ]{1,20}$
<br/><br/>

3. If you would like a alphabetical character followed by any number of non-white-space characters (note that it would also include numbers!) then you should use this:
^[A-Za-z]\S*$
<br/><br/>

Test: https://regex101.com
https://stackoverflow.com/questions/1653425/a-za-z-a-za-z0-9-regular-expression
<br/><br/>

<h3>JWT BUILDER: </h3>
https://github.com/vandium-io/jwt-builder

<h3>Interesting Node Porject Source:</h3>
https://github.com/vandium-io/vandium-node/tree/master/lib/jwt


<h3>Simply put, a JWT is just a string with the following format:</h3>

header.payload.signature

<h3>JWT Simply PUT</h3>
https://solidgeargroup.com/refresh-token-with-jwt-authentication-node-js<br/>
https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/
var str = '<h2>hello</h2>';
str = str.replace(/<[^>]*>/g, '|');
console.log(str);

const regex = /^([a-zA-Z0-9 ]+){1,34}$/gm;
var str = `N`;
let m = '000 *(\\\\';

while ((m = regex.exec(str)) !== null) {
    // This is necessary to avoid infinite loops with zero-width matches
    if (m.index === regex.lastIndex) {
        regex.lastIndex++;
    }
    
    // The result can be accessed through the `m`-variable.
    m.forEach((match, groupIndex) => {
        console.log(`Found match, group ${groupIndex}: ${match}`);
    });
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.