Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Database
#redis
#uri
#url
#database

Redis Connection URI

Validates Redis and Redis SSL connection URLs (redis://, rediss://) with optional user, password, port, and DB index.

✓ Environment variable validation✓ Backend config loader✓ SaaS connection setup
/
/
Safe
Test String
2 matches
rr— 'r' — literal character
ee— 'e' — literal character
dd— 'd' — literal character
ii— 'i' — literal character
ss— 's' — literal character
s?s— 's' — literal character — repeated zero or one time (optional) · ? — zero or one time (optional)
::— ':' — literal character
\/\/— \/ — escaped character '/'
\/\/— \/ — escaped character '/'
(?:…)?Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated zero or one time (optional) · ? — zero or one time (optional)
(?:…)?Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated zero or one time (optional) · ? — zero or one time (optional)
(?:…)?Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated zero or one time (optional) · ? — zero or one time (optional)
@@— '@' — literal character
(?:…)Non-capturing group— Non-capturing group — groups without capturing (no index assigned)
[…]+Character class […]— Matches any single character listed in this set — repeated one or more times (greedy) · + — one or more times (greedy)
||— | — alternation: matches expression on left OR right
\d{1,3}digit— \d — digit (0–9) — repeated between 1 and 3 times · {1,3} — between 1 and 3 times
(?:…){3}Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated exactly 3 times · {3} — exactly 3 times
::— ':' — literal character
\d{1,5}digit— \d — digit (0–9) — repeated between 1 and 5 times · {1,5} — between 1 and 5 times
(?:…)?Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated zero or one time (optional) · ? — zero or one time (optional)
\/\/— \/ — escaped character '/'
\d{1,2}digit— \d — digit (0–9) — repeated between 1 and 2 times · {1,2} — between 1 and 2 times
Pattern: 107 charsInput: 108 chars
100% client-side · private

✓ Valid Examples

  • redis://localhost:6379
  • redis://user:password@127.0.0.1:6379/0
  • rediss://:secretpass@redis.example.com:6380/15

✗ Invalid Examples

  • http://localhost:6379
  • redis://
  • invalid-redis-string

Usage & Integration

Validate Redis Connection URI natively in your backend or frontend without copying regex strings.

Node / Edge

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

validate('redis-url', '...');

Python

from regexto_validators import validate

validate("redis-url", "...")

Go

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

valid, err := validators.Validate("redis-url", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('redis-url', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("redis-url", "...").unwrap();