Extract the e-mail address elements

I would like to extract the two elements of an e-mail address, for example, if the e-mail address is [email protected] I would set the variable 'user' to 'joe' and the variable 'domain' to 'domain.com '. How can I retrieve all the above him @ sign and everything that follows the symbol @?

Thanks for your help.

drmaves wrote:
> I would like to extract the two elements of an e-mail address, for example, if
> e-mail address is [email protected] I would like to assign to the variable 'user '.
> 'joe' and the variable 'domain' to 'domain.com '. How can I extract everything
> before the @ sign and everything that follows the symbol @?
>
> Thanks for your help.
>

With your choice string manipulation functions, all of which are well
defined in the literature with your installation and the
Internet.

But since I'm avoiding work I'll share my favorite for this.

user = listFirst ('[email protected]',' @')
Domain = listLast ('[email protected]',' @')

Tags: ColdFusion

Similar Questions

Maybe you are looking for

  • Thunderbird keeps opening PDFs with LibreOffice

    This is despite the parameters clearly say to use the viewer of documents to open PDF files and not libreoffice: http://i.imgur.com/iToznlA.png. How can I fix?

  • How to remove - com.adobe.ARMDCHelper.cc24-

    After execution of Etrecheck... I find that com.adobe.ARMDCHelper.cc24 - etc... shows that it is a failure... I don't know what it is, or delete.  I checked the Macintosh HD - library and library system... to search for that item in the launch of dem

  • Explain the tools > "Synchronize now".

    Firefox Sync is running on my four computers. Sometimes a new bookmark on one machine fits on one of the others in a few minutes, sometimes not. Tools contains a "Synchronize now" feature, but there is nothing to explain what it is supposed to do. It

  • removal of apps

    I had the weather channel on my laptop and I removed the program by going to control panel. now, I still have a problem... whenever I have stsrt my pc a window opens with the weather channel application. How can I get rid of apps... Thanks alan

  • RDS application icons not appering correctly in view Horizon 6 customer

    Some applications display the right icons, some appear only with an icon 'A '.Somethings wrong here... Any ideas?FunnyNot so funny