All Projects → pokepay → cl-string-generator

pokepay / cl-string-generator

Licence: MIT License
Generate string from regular expression

Programming Languages

common lisp
692 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].