Regular expression to remove email address in an array

Hi, In KM I have a variable with the following string, I would like to remove the email address in it

; 447744447799; PETER.XU@HOTMAIL.CO.UK; 447779974444; 0799999999

Which regular expression would I need to use? I am finding this one to be tricky.

Many thanks for your assistance

Assuming the @ cannot appear anywhere else, and the email address cannot be at the end of the line, and the items are separated by semicolons, then search for:

[^;]+@[^;]+;

If the data is more complicated, then you need to show more data.

1 Like

Perfect thank you