priscillatrevizan/regex-generator

[FEATURE] Add URL validator regex generator

Open

#14 opened on Oct 11, 2025

View on GitHub
 (2 comments) (0 reactions) (1 assignee)JavaScript (11 forks)auto 404
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 like requireProtocol (boolean) and allowSubdomains (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.

Contributor guide