All Projects → audreyt → quickcheck-regex

audreyt / quickcheck-regex

Licence: other
Generate regex-constrained strings for QuickCheck

Programming Languages

haskell
3896 projects

quickcheck-regex

This module exports a matching function that turns a regular expression into a generator for strings matching that regex.

For example:

>>> import Test.QuickCheck.Regex (matching)
>>> import Test.QuickCheck (generate)
>>> generate (matching "[-a-z0-9._%]+@[-a-z0-9.]+\\.[a-z]{3,18}\\.(asia|eu|today)")
"9%[email protected]"

CC0 1.0 Universal

To the extent possible under law, 唐鳳 has waived all copyright and related or neighboring rights to quickcheck-regex.

This work is published from Taiwan.

http://creativecommons.org/publicdomain/zero/1.0

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].