I am trying to filter out a username for an incoming connection with .xsl file(DataPower appliance). I have 4 scenarios
user@domain.com - needs to stay the way it is.
user@remove.com - need to remove the domain part.
user@domain.com@remove.com - need to remove only the remove part.
user@remove.com.anything - again need to remove this and everything after.
There are 3 variables here. The 'user' can be anything. The domain can be anything. And the .anything after the remove.com, can be anything. @remove.com will ALWAYS be the same. Luckily that is the constant we can use.
Is there a simple if/then statement we can use to do this. We have tried many variations of If, when, contains, and can't seem to get it working. I can paste the code we are currently using if that will help.
Thanks.