I have a string something like this,
Example 1 @abc@xy<a href="http://-example.com">-example.com</a> and @xyz@abc.com Example 2
Now, I want to remove the string occurring after the second @
encountered, i.e. @example.com
@abc.com
and preserve the rest of the data which should look like,
Example 1 @abc and @xyz Example 2
I have tried a lot of RegExp and saw many examples but have had no luck so far.
If anyone has tried something similar, it'd be great if you can help me out.