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?
|
Newbie Member
|
|
| 17Dec2011,18:31 | #1 |
|
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 |
|
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
|