LTM

I have task for F5 LTM, want to achieve this, I have this url abc.com|longurl|exampl so when I’m going to put this url in browser so result should be abc.com

This is unclear on what you are attempting to do - and does not have proper syntax.  Please re-ask and use proper syntax.   my best guess now is:
you are attempting to redirect:    http://abc.com/longurl/exampl    to    http://abc.com      or are you trying to go the reverse    put in  http://abc.com    and convert to  http://abc.com/longurl/exampl      
either way - you are looking to do a redirect/ rewrite which has many solution on this board.