Skip to content

Instantly share code, notes, and snippets.

@0x00000FF
Created April 29, 2023 12:28
Show Gist options
  • Save 0x00000FF/aee9295bc83af612d6fef66ce3e6e4c9 to your computer and use it in GitHub Desktop.
Save 0x00000FF/aee9295bc83af612d6fef66ce3e6e4c9 to your computer and use it in GitHub Desktop.
Matching IP Addresses (Sample Input 192.168.0.1, 14 Steps)
^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$
Matching Email Addresses (Sample Input example@example.com, 12 Steps)
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
Matching URLs (Sample Input https://example.com/exmple?a=1&b=1&c=1, 14 Steps)
^(?:https?|ftp):\/\/[^\s\/$.?#].[^\s]*$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment