regex

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandPattern

func ExpandPattern(pattern string) ([]string, error)

ExpandPattern expands a regex pattern into all possible domain name combinations Supports: [a-z] character ranges, {n} repetition counts, and literal characters Example: "[a-z]{3}" generates all 3-letter combinations: aaa, aab, aac, ..., zzz

func IsPatternSafe

func IsPatternSafe(pattern string, maxCombinations int) (bool, int, error)

func ValidatePattern

func ValidatePattern(pattern string) error

Types

type Segment

type Segment struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL