How to use double brackets in a regular expression?
Posix character classes use a [:alpha:] notation, which are used inside a regular expression like: /[[:alpha:][:digit:]]/ You’ll need to scroll down a ways to get to the Posix information in the link above. From the docs: POSIX bracket expressions are also similar to character classes. They provide a portable alternative to the above, with the … Read more