Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Internet
#github
#git
#repository
#vcs

GitHub Repository

Validates GitHub repository references in owner/repo format. Owner and repo names must be 1–100 characters and contain only alphanumerics, hyphens, underscores, or dots.

✓ GitHub App integrations✓ CI/CD config validation✓ Monorepo tooling
/
/
Safe
Test String
4 matches
[…]Character class […]— Matches any single character listed in this set
a-za-z— a-z — range from 'a' to 'z'
A-ZA-Z— A-Z — range from 'A' to 'Z'
0-90-9— 0-9 — range from '0' to '9'
(?:…)?Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated zero or one time (optional) · ? — zero or one time (optional)
[…]{0,37}Character class […]— Matches any single character listed in this set — repeated between 0 and 37 times · {0,37} — between 0 and 37 times
[…]Character class […]— Matches any single character listed in this set
//— '/' — literal character
[…]Character class […]— Matches any single character listed in this set
a-za-z— a-z — range from 'a' to 'z'
A-ZA-Z— A-Z — range from 'A' to 'Z'
0-90-9— 0-9 — range from '0' to '9'
[…]{0,98}Character class […]— Matches any single character listed in this set — repeated between 0 and 98 times · {0,98} — between 0 and 98 times
a-za-z— a-z — range from 'a' to 'z'
A-ZA-Z— A-Z — range from 'A' to 'Z'
0-90-9— 0-9 — range from '0' to '9'
..— '.' — literal character
__— '_' — literal character
\-\-— \- — escaped character
Pattern: 81 charsInput: 76 chars
100% client-side · private

✓ Valid Examples

  • regex-to/validators
  • torvalds/linux
  • microsoft/TypeScript
  • user123/my.repo_name

✗ Invalid Examples

  • just-a-name
  • /missing-owner
  • owner/
  • -invalid/repo

Usage & Integration

Validate GitHub Repository natively in your backend or frontend without copying regex strings.

Node / Edge

import { validate } from '@regexto/validators';

validate('github-repo', '...');

Python

from regexto_validators import validate

validate("github-repo", "...")

Go

import "github.com/regex-to/validators-go"

valid, err := validators.Validate("github-repo", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('github-repo', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("github-repo", "...").unwrap();