Skip to content

Instantly share code, notes, and snippets.

@sufiiiyan
sufiiiyan / regex cases.md
Last active February 21, 2024 08:24
Regex
  1. Useful regex
  2. Playground
  3. Resource
  4. Working url and number range

Useful regex

# Title regex Description/notes
1 Regex to allow alphanumeric, spaces, some special characters ^(?!\d+$)(?:[a-zA-Z0-9][a-zA-Z0-9 @&$]*)?$ not allowing only number
^(?!$)(?:[A-Za-z0-9][A-Za-z0-9 @&$,.?_-]*)?$ getting invalid character class due to -