P
PdG
Sorry, i think it's a faq, but it's driving me crazy.
The probem is very simple: i've a string, and i want to match if there
isn't a substring inside it.
Ie: the string is "my connector is broken", and i want a regexp that
gives true if there isn't the string "connector" inside it, false
otherwise.
the !~/connector/ is the solution, but i've a library where the
matching is done using a =~ /$regexp/ and i'd like to don't touch the
source.. only write a good $regexp that is identical to !~/connector/
Can you help me?
The probem is very simple: i've a string, and i want to match if there
isn't a substring inside it.
Ie: the string is "my connector is broken", and i want a regexp that
gives true if there isn't the string "connector" inside it, false
otherwise.
the !~/connector/ is the solution, but i've a library where the
matching is done using a =~ /$regexp/ and i'd like to don't touch the
source.. only write a good $regexp that is identical to !~/connector/
Can you help me?