I have an array input like this which is an email id in reverse order along with some data:
MOC.OOHAY@ABC.PQRqwertySDdd
MOC.OOHAY@AB.JKLasDDbfn
MOC.OOHAY@XZ.JKGposDDbfn
I want my output to come as
MOC.OOHAY@ABC.PQR
MOC.OOHAY@AB.JKL
MOC.OOHAY@XZ.JKG
How should I filter the string since there is no pattern?