Skip to content

angles-n-daemons/sputter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sputter

POSIX basic regular expressions to psuedo random string generator, just for fun

(Forked from my old work account)

Usage

package main

import (
	"fmt"

	"github.com/brianasapp/sputter"
)

func main() {
	s, err := sputter.Gen("[A-Z0-9]^(Word){1,3}$.+")
	if err != nil {
		panic(err)
	}
	fmt.Printf("generated below: \n%s\n", s)
}
$ go run main.go
generated below:
5
WordWord
Њѯѹկ¢↔≡♲

For cryptographically insecure usage, use the GenInsecure function in place of Gen

Supported Operations

  • literal
  • character class
  • capture
  • any char not newline
  • begin line
  • end line
  • star
  • plus
  • question
  • repeat
  • concat
  • alternation

note: for randomized repetition, there is a max value of 100.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%