Skip to content

Regexpressions

SupremeERG edited this page Jul 18, 2023 · 4 revisions

Note: these patterns are already in the repository and get updated quicker there.

Common Regex patterns

  • (.)\1{3,} // Matches any string with a character that repeats 4 times consecutively or more
  • (.).*\1 // Matches any string that has the same character appear twice (anywhere, not consecutively)
  • [!@#%^&*()_+\-=\[\]{}|;\':\",./<>?~\`] // Matches any string with a special character

Clone this wiki locally