priscillatrevizan/regex-generator
View on GitHub[FEATURE] Add URL validator regex generator
Open
#14 opened on Oct 11, 2025
enhancementgood first issuehacktoberfesthacktoberfest2025priority-mediumregex
Repository metrics
- Stars
- (13 stars)
- PR merge metrics
- (PR metrics pending)
Description
1. Request Type
- ✨ Feature Request
2. General Description
This issue proposes adding a new regex generator to the project: URL validator generator that can accept optional protocol (http/https), optional www, and validate domain and path components.
3. Specific Information
- Problem to Solve: Many user inputs are URLs; the project currently does not provide a robust URL regex generator.
- Suggested Solution: Implement
generateUrlRegex(options)with options likerequireProtocol(boolean) andallowSubdomains(boolean). Use a well-tested pattern that balances strictness and practicality.
Important:
When requesting this task from the maintainer, you can suggest applicable labels for this issue.