I have several regex patterns and i have to negate them all, so i am trying to build somo generic regex negate, something like /^(anypattern)/ but I am having troubles..
for example, I have this text: zzzzzAAAAA@AAAA_AAAzzzzzzAAAAA@AAAA.AAAggggggAAAAA@AAA.AAAooooooooo
and this pattern: [A-Z]+@[A-Z]+\\.[A-Z]{2,4}
, I need something to negate this. I would get the an array with the following matches:
zzzzzAAAAA@AAAA_AAAzzzzzz , gggggg , ooooooooo
Note that AAAAA@AAAA_AAA
was included only because this have a _ instead a dot
my regex are all simple, dont having any of these especial caracteres: \s,\t,\r,\n,\v,\f,\b,etc..
I tryed to solve it with negative lookarounds but without success