Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Network
#ipv6
#network
#internet
#address

IPv6 Address

Matches a full-form IPv6 address with 8 groups of 4 hexadecimal digits separated by colons.

Network configuration validationFirewall rulesAPI input sanitization
/
/
Risk
Test String
2 matches
(…){7}Group #1Capturing group — captures matched text for reuse or extraction — repeated exactly 7 times · {7} — exactly 7 times
[…]{1,4}Character class […]Matches any single character listed in this set — repeated between 1 and 4 times · {1,4} — between 1 and 4 times
::':' — literal character
[…]{1,4}Character class […]Matches any single character listed in this set — repeated between 1 and 4 times · {1,4} — between 1 and 4 times
0-90-90-9 — range from '0' to '9'
a-fa-fa-f — range from 'a' to 'f'
A-FA-FA-F — range from 'A' to 'F'
Pattern: 38 charsInput: 79 chars
100% client-side · private

Valid Examples

  • 2001:0db8:85a3:0000:0000:8a2e:0370:7334
  • fe80:0000:0000:0000:0204:61ff:fe9d:f156

Invalid Examples

  • 192.168.1.1
  • ::1
  • 2001:db8::1

Usage & Integration

Validate IPv6 Address natively in your backend or frontend without copying regex strings.

Node / Edge

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

validate('ipv6', '...');

Python

from regexto_validators import validate

validate("ipv6", "...")

Go

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

valid, err := validators.Validate("ipv6", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('ipv6', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("ipv6", "...").unwrap();