create strings of given regular expression
Hi friends,
Is there any way I can create strings that match a given regular expression ?
I will create or choose some regular expression in the course of program. It should then generate some strings that match this regular expression.
For e.g. if the regular expression is Product[1-9]+, it should generate some strings like Product1, Product2, Product3, ...., Product9, product10, .... etc. etc.
This should be done in general. This means the script should parse the regular expression and intelligently build strings out of it.
May anybody help me please ?
Thanks
Madhu
|