random string not matching reg ex

Newbie Member
17Dec2011,18:31   #1
max12345's Avatar
Hello there,

i am trying to write an algorithm that generates a random string NOT matching a given regular expression, does anyone have an idea on the correct ways of going about this?
Skilled contributor
20Dec2011,22:37   #2
ManzZup's Avatar
you can put the compliment [or the not] for the whole expression and then generate a str with that
so that regex would be searching for the quite opposite of it