Skip to content

pokepay/cl-string-generator

Repository files navigation

cl-string-generator

Generate string from regular expression

Usage

(ql:quickload :cl-string-generator)
(use-package :cl-string-generator)

(generate "[0-9A-F]{8}-(?:[0-9A-F]{4}-){3}[0-9A-F]{8}")
;; => "A64BE7F3-1041-6C90-D8EB-2A0F46A8"

(generate "(foo|bar)\\1")
;; => "foofoo"

(generate "a*b*" :max-length 3)
;; => "aab"

(generate "a*b*" :min-length 3 :max-length 4)
;; => "aaab"

License

MIT

About

Generate string from regular expression

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published