String generation with regex criteria
Posted
by
menjaraz
on Stack Overflow
See other posts from Stack Overflow
or by menjaraz
Published on 2012-04-05T17:25:52Z
Indexed on
2012/04/05
17:30 UTC
Read the original article
Hit count: 419
I wonder wether it is feasible to implement an optimal string generator Class meeting the following requirements:
- Generation criteria using regex
- Lexicographical order enumeration.
- Count propetry
- Indexed access
I don't feel comfortable with regular expression: I cannot come up with a starting piece of code but I just think of a naive implementation using a TList as a base class and use a filter (Regex) against "brute force" generated string.
Thank you.
© Stack Overflow or respective owner