Skip to content

Instantly share code, notes, and snippets.

@loclv
Created November 27, 2023 12:26
Show Gist options
  • Select an option

  • Save loclv/7b64a7efdc0f2f9fb89dbb54661cf98c to your computer and use it in GitHub Desktop.

Select an option

Save loclv/7b64a7efdc0f2f9fb89dbb54661cf98c to your computer and use it in GitHub Desktop.
Regex that includes alphabets, numbers, and some special characters | Bao gồm chữ cái hoa thường, số và các ký tự đặc biệt | アルファベット、数字、およびいくつかの特殊記号を含む場合

Regex that includes alphabets, numbers, and some special characters

^[a-zA-Z0-9!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]+$

View logic image at https://regexper.com/.

From ihateregex.io/cheatsheet:

  • /[a-zA-Z0-9]/: matches all lowercase, uppercase letters and numbers
  • /^/ matches beginning of a line
  • /$/ matches end of a line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment