How can I negate a whole string by regular expression?

Hello developers,

 

does anyone know how can I exclude (negate) a whole string by a regular expression?

Until so far, I tried to use following: Regexp regex_negate = regexp2("^(?!.*string_to_be_negated).*$"),

but this does not work. It seems that DXL does not support the negative lookahead.


MarcoLuk - Tue Oct 24 11:25:11 EDT 2017

Re: How can I negate a whole string by regular expression?
PekkaMakinen - Tue Oct 24 11:54:54 EDT 2017

Below your post https://www.ibm.com/developerworks/community/forums/html/topic?id=00ec8aef-c277-495e-b61d-23124fee525d&ps=25