/^(https?:\/\/)?(www\.)?github\.com\/[a-zA-Z0-9_]{1,25}$/igm
Last active
February 4, 2024 17:42
-
-
Save AshikNesin/7851df2a57041e10ef88 to your computer and use it in GitHub Desktop.
Regular Expression to check GitHub Profile URL
Got here while looking for a similar expression for google form to accept only GitHub profile URL, that didn't work but the following worked
^https?://github.com/([a-zA-Z0-9._-]+)$
Thanks for sharing, @unclebay143 🙌
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got here while looking for a similar expression for google form to accept only GitHub profile URL, that didn't work but the following worked