[A-z0-9]+ regexp matching square brackets [duplicate] April 22, 2023 by Tarik Because [A-z0-9]+ ↑ ↑ is from A to z, see the ASCII table, ] appears between the two characters: