Build, test, and debug regular expressions
This regex matches JSON Web Tokens (JWT) by looking for three groups of Base64Url encoded characters, which represent the header, payload, and signature. It is useful for basic validation or extraction of JWT tokens within text, though the optional dot matching makes it somewhat flexible. The global and multiline flags allow it to process multiple tokens across multiple lines.