Skip to content

Instantly share code, notes, and snippets.

View kaylaanngrace's full-sized avatar
🎯
Focusing

Makayla Wilson kaylaanngrace

🎯
Focusing
View GitHub Profile
@kaylaanngrace
kaylaanngrace / urlRegexTutorial-ByMakWils
Last active May 18, 2022 17:53
Regular Expression, URL, breakdown
# urlRegexTutorial-ByMakWils
/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w\.-]*)*\/?$/
This gist describes the compentents of matching a URL. Matching a URL is considered a regular expression or regex for short. A regex is a sequence of characters that defines a specific search pattern.
## Summary
Matching a URL is considered a regular expression or regex for short. A regex is a sequence of characters that defines a specific search pattern.