title: How to parse the ejabberd JID into its parts
body: <p>Im writing and ejabberd module that checks if the user exists to do something, im using ejabberd_auth_external:is_user_exists("USER", "HOST") to achieve that however i don't have the USER but the full JID in the form of USER@HOST/RESOURCE, is there any way to get the USER out of that string</p>