I want to negate the outcome of the regex pattern, so that it should return everything except the regex outcome.
Sample String:
SMTP:test.abc@xyz.com;smtp:test.123@xyz.biz;sip:test.123@xyz.biz
I have written a below regex which gives output as- test.abc@xyz.com
(?<=SMTP:)(.*?)(?=;)
Now i want everything except the above outcome i.e
SMTP:;smtp:test.abc@xyz.biz;sip:test.abc@xyz.biz
I am trying to negate but it is not working.
Any help is much appreciated.