Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   random string not matching reg ex (http://www.go4expert.com/forums/random-string-matching-reg-ex-t27395/)

max12345 17Dec2011 18:31

random string not matching reg ex
 
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 20Dec2011 22:37

Re: random string not matching reg ex
 
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 :)


All times are GMT +5.5. The time now is 15:13.