random string not matching reg ex

max12345's Avatar, Join Date: Nov 2011
Newbie Member
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?
ManzZup's Avatar, Join Date: May 2009
Skilled contributor
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