String Function Syntax Needed to get Text after "@"

Hi. I need to use a CF Function to get the domain name
following the "@" charcter in an email address. For example,
[email protected] would be converted to company.com. Does
anyone know how to do this?
Thanks!

Hello Art,
I did something similar, just leaving off the .com, etc. Not
the most elegant
I'm sure, but it works:
<!--- Find position of '@' in users email --->
<cfset stest=findnocase("@",#form.contactEmail#)>
<!--- Now find the '.' --->
<cfset etest=findnocase(".",#form.contactEmail#,stest)>
<!--- Take everything inbetween the two, 1 is added to
stest to get 1 space
past the @, and same for etest, get prior to '.' --->
<cfset
email_test=trim(mid(#form.contactEmail#,(stest+1),((etest-1)-stest)))>
Steve
> Hi. I need to use a CF Function to get the domain name
following the
> "@" charcter in an email address. For example,
[email protected]
> would be converted to company.com. Does anyone know how
to do this?
>
> Thanks!
>

Similar Messages

  • RFC Function module needed for getting table details in APO from R/3

    Hi,
    I need a RFC function module where I can write a query from R/3 to access APO server database table and get the necessary records.
    Regards
    Mac

    Possible ways
    1. Call fm RFC_READ_TABLE and give destination and table name ( But i am not sure how it will work SCIF enviornment of APO)
    or
    2. Create a custom function module in APO side and call from R/3 side using destnation option

  • I need to get texting with my 4s to my 2013 altima

    I need to know how to send and read text with my hands free Bluetooth on my 2013 nissan Altimaw

    Have you consulted with the dealership that sold you the car?  I worked at a car dealership before, and the car salesman(women) would often help customers with issues like these, or get a mechanic to help.

  • Unable to get page with video to validate and need help getting text to display correctly

    I need advice on getting a page to validate that has a video. I didn't make the video, but all other pages vallidate that don't have it.
    Also, when testing viewing on ie with large font view the navigation bar on the left doesn't display correctly. I've tried all fixes I can think of, but none work.
    As always any advice is greatly appreciated.
    page can be viewed at: http://www.lotusvalleydesigns.com/previewpages/services.html

    Eeeeeuuuuu yuck.  You know, I've never used that setting in IE and I don't think I ever will again.
    Look what happens to CNN's website when you do that.
    http://CNN.com
    I think IE sucks and this is another fine example of MS's zeal to pile on user options that no one should use.  If MS made their zoom feature optional the way Firefox does, nobody would ever need this atrocious "accessibility" option.
    Good luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Just need help getting contacts after upgrade

    someone mentioned going to back up done before the upgrade. How do you access that? i did the back up a week ago and did another before upgrading this afternoon. I lost all my apps but was able to figure out how to get them back and it didn't involve going to a backup. The speed is quicker than before I just need help with getting my contacts back. anyone able to help me out on this matter?

    All your contacts should be in whatever PC program you have been syncing them with - Outlook 2003/2007 or Windows Address Book.
    This article describes how to set this up:
    http://support.apple.com/kb/HT1296
    If your contacts are no longer on your PC, just restore them from your most recent PC backup.

  • Any one having issues sending or getting texts after the upgrade to 7.0.3

    Ever since I updated today to 7.0.3 I cannot get any texts

    all my settings are good in mine .. I cannot send/recieve green messages or make calls to anyone at all..
    I tried doing the fix that razmee209 posted and nothing helped.

  • Functional module which get triggered after posting of the document F-22

    Hi,
    I am posting the documents using the transaction F-22. I need to update some table after the documet will get post.
    I try to find out the BTE'S in the transaction FIBF but unable to find it out.
    Can anyone help me to find out the relvant functional module which will get triggered after the posting of the documents.
    Please help me with this.
    Thanks in advanced.
    Regards,
    Darshana

    Hi Harini,
    It is also not get triggered while i am posting the documents.
    Can you please suggest me some more functional modules.
    Thanks in advanced.
    Regards,
    Darshana

  • Bullets and Numbering "Text After" attribute

    Hi Everyone,
    I need to grab "Text After" attribute of and existing bullet list in InDesign document and change it to my text. I think, I need to get access to "kBNBulletTextAfterBoss", but I don't know which boss agregates it.
    Thanks

    I've found it a much better practice, especially in heavily numbered documents, to look for a paragraph style that can be set to start at zero. I usually apply it to any headings or subheadings where the numbering below remains consistent. But that's just my experience.
    You can also right click and restrat or continue numbering.

  • How to get text position in a pdf?

    I need to get text position such has width, height, x, y and base position in a pdf.
    Can one help me to work further.

    i solved PDEForm issue thank you. Now i need to get the text from PDEElement.
    Can you help for this?
      PDEElement pdeElement;
        ASInt32 numElems = PDEContentGetNumElems (pdeContent);
        ASFixedRect bBox;
        for (ASInt32 i = 0; i < numElems; i++) {
            pdeElement = PDEContentGetElem (pdeContent, i);
            if (PDEObjectGetType((PDEObject)pdeElement) == kPDEForm)
                PDEForm form = (PDEForm)pdeElement;
                PDEContent content = PDEFormGetContent(form);
                GetCoOrdinate(content);
            else if(PDEObjectGetType((PDEObject)pdeElement) == kPDEText)
                PDETextState objPDETextState;
                PDEText aotextObject;
                memset(&objPDETextState, 0,sizeof(PDETextState));
                aotextObject = (PDEText)pdeElement;
                PDETextGetTextState(aotextObject,kPDETextRun,0,&objPDETextState,sizeof (PDETextState));
                if(objPDETextState.renderMode == kPDETextInvisible)
                    AVAlertNote("Invisible");
                else
                    PDEElementGetBBox (pdeElement, &bBox);
                    os.str("");
                    os << ASFixedRoundToInt32 (bBox.top) <<":" << ASFixedRoundToInt32 (bBox.bottom) << ":" << ASFixedRoundToInt32 (bBox.left) << ":" << ASFixedRoundToInt32 (bBox.right);
                    AVAlertNote(os.str().c_str());
            else
                os.str("");
                os << "Type: "<< PDEObjectGetType((PDEObject)pdeElement);
               // AVAlertNote(os.str().c_str());
                // Get the bounding box of the PDEElement and fill out the
                // selection structure to highlight the image.
                PDEElementGetBBox (pdeElement, &bBox);
                os.str("");
                os << ASFixedRoundToInt32 (bBox.top) <<":" << ASFixedRoundToInt32 (bBox.bottom) << ":" << ASFixedRoundToInt32 (bBox.left) << ":" << ASFixedRoundToInt32 (bBox.right);
                //AVAlertNote(os.str().c_str());

  • I need to get the tagName after a node of the first child of the Root

    Hi All,
    I need to get the TagName of the Node immediete after the Root. I won't know what is the TagName, and based on the Tagname only I can process the records.
    For example I might receive a SALES object or a MARKETING object wrapped under the root.
    eg.
    <PARENT>
    <SALES>
    </SALES>
    </PARENT>
    or
    <PARENT>
    <MARKETING>
    </MARKETING>
    </PARENT>
    I tried to using like this
                   DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
                   File file = new File("c:/example.xml");
                   document = documentBuilder.parse(file);
                   Node node = document.getDocumentElement().getFirstChild();
                   System.out.println("node Name:" +node.getNodeName());
                   System.out.println("node Value:" +node.getNodeValue());
    It returns only something like #text, but I need the response like 'SALES'.
    Can anyone let me know if im missing something somewhere.
    thanks in advance,
    Harish

    That's because the first child of the document element is that whitespace text node between <PARENT> and <SALES>. You need to scan through the children of the document element until you find one that is an Element node.

  • Does Update function module gets executed after Commit Work?

    Hi Gurus,
    I have a BAPI with a Commit work. Does update function module V1 , V2 - i need mainly about the sequence of V2, gets executed after Commit work or before Commit work.
    Thanks

    Pl refer to SAP help on the same as follows.
    https://help.sap.com/saphelp_nw04/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/content.htm
    Regards,
    Naveen Vishal

  • Getting unformatted text after decryption of formatted encrypted text

    The problem getting unformatted text after decryption of a formatted encrypted text.
    Im using Bouncy Caslte for encrypting the mail message.its a well formatted text but
    after decryption its unformmated?
    What will be the problem? why im getting the decrypted text as unformatted?

    sorry im using Bouncy Castle for encryption
    This is my code
    try {               
                   Security
                             .addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
                   KeyStore ks = KeyStore.getInstance("PKCS12", "BC");
                   ks.load(new FileInputStream("C:/rajesh/raj_gmail.cer"), "tomcat".toCharArray());
                   Enumeration e = ks.aliases();
                   String keyAlias = null;
                   String alias = null;
                   while (e.hasMoreElements()) {
                        alias = (String) e.nextElement();
                        if (ks.isKeyEntry(alias)) {
                             keyAlias = alias;
                   Certificate[] chain = ks.getCertificateChain(keyAlias);
                   // create the generator for creating an smime/encrypted message
                   SMIMEEnvelopedGenerator gen = new SMIMEEnvelopedGenerator();
                   gen.addKeyTransRecipient((X509Certificate) chain[0]);
                   Properties props = System.getProperties();
                   try {
                        InputStream path = getServlet()
                                  .getServletContext()
                                  .getResourceAsStream(
                                            "/WEB-INF/classes/com/ips/ApplicationResources.properties");
                        props.load(path);
                   } catch (Exception e1) {
                        System.out.println("Not able to load the properties file");
                   props.put("mail.smtp.host", props.getProperty("mail.smtp.host"));
                   Session session = Session.getDefaultInstance(props, null);
                   MimeMessage msg = new MimeMessage(session);
                   String body_heading = props
                             .getProperty("mail.request.message.body");
                   body_heading = body_heading.replaceAll("[{]{1}[0]{1}[}]{1}",
                             Integer.toString(forms));
                   msg.addRecipient(Message.RecipientType.TO, new InternetAddress(
                             props.getProperty("mail.to.address")));
                   msg.setSubject(props.getProperty("mail.request.message.subject"));
                   StringBuffer body = new StringBuffer();
                   body.append(body_heading);
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.line1"));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.contact"));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.line2"));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.message.title")
                             + props.getProperty("mail.colon")
                             + String.format("%15s", title));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.message.fname")
                             + props.getProperty("mail.colon")
                             + String.format("%17s", firstname));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.message.lname")
                             + props.getProperty("mail.colon")
                             + String.format("%17s", lastname));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.message.address1")
                             + props.getProperty("mail.colon")
                             + String.format("%19s", address1));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.tab")
                             + props.getProperty("mail.colon")
                             + String.format("%20s", address2));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.tab")
                             + props.getProperty("mail.colon")
                             + String.format("%20s", town));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.tab")
                             + props.getProperty("mail.colon")
                             + String.format("%20s", county));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.message.pcode")
                             + props.getProperty("mail.colon")
                             + String.format("%11s", postcode));
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.message.email")
                             + props.getProperty("mail.colon")/*
                                                                      * +String.format("%33s",email
                   body.append(props.getProperty("mail.linebreak")
                             + props.getProperty("mail.message.thanks"));
                   MimeBodyPart bp1 = new MimeBodyPart();
                   bp1.setText(body.toString());
                   bp1 = gen.generate(bp1, SMIMEEnvelopedGenerator.RC2_CBC, "BC");
                   Multipart multipart = new MimeMultipart();
                   multipart.addBodyPart(bp1);
                   msg.setContent(multipart);
                   msg.saveChanges();
                   Transport.send(msg);
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              }if i print the original text im getting the content in my mail as
    Please send me 1 application form pack(s)
    Contact Details
    Title: Mr
    First name: rchanged
    Last name: rchanged
    Address: rchanged
    : rchanged
    : r
    : r
    Postcode: r4 4rr
    Email:
    Thank You
    if encrypted is send
    Please send me 1 application form pack(s) ------------------------------------------------------ Contact Details ------------------------------------------------------ Title: Mr First name: rchanged Last name: rchanged Address: rchanged : rchanged : r : r Postcode: r4 4rr Email: Thank You

  • Middleware-Partner Functions not getting attached after BP replication

    Dear SDN team,
    We have an problem related to CRM middleware . We have enabled Middleware to download BPs from SAP R/3 system to CRM 5.2 system.
    Problem: We are able to download the individual BPs like Sold to party and Bill to party from SAP R/3 system to the CRM system. _But the Partner function relationships are not getting attached to these BPs after the replication from ERP to CRM _. I mean the Bill to party is not getting attached to the respective Sold to Party in the CRM system .
    Strangely the Contacts for individual BPs is getting replicated via BP relationships
    Can someone help me to solve this problem.
    What should we do on the MW settings to replicate the respective BP relationships ??
    Kindly get back urgently . Suitable points will be awarded for the useful solution.
    Regards
    Ritvij

    Ritvij,
    You can try as suggest to setup a filter on CUSTOMER_REL on KVNK.  I would exclude any entries where PARNR is a non null value.  Beyond that you may need to do a middleware exit to block that data on the R/3 side.
    For your second question:
    R/3 Account Group = CRM BP Grouping
    Your settings PIDE should transfer the the account group to CRM.  You will need however to maintain a corresponding grouping with number range on the CRM.
    I believe from a business partner "role" perspective, you need to do a middleware exit if you want to replicate the custom account group into a custom role.
    If you do however have a relationship then you need need to do the mapping configuration for this.
    In the CRM IMG you can use the Menu Path:
    CRM->Basic Functions->Partner Processing->Data Transfer.  This will alow you to map in any custom partner functions from R/3 into CRM and be linkded on the business partner master.
    Take care,
    Stephen

  • Need help getting the syntax.

    Hi All,
    Greetings !!!!!!!!!!
    While using the following syntax not getting the output required...
    1) <?xdoxslt:set_variable($_XDOCTX, 'v_l',xdofx:(nvl(V_COUNT,0)+nvl(V_COUNT1,0)+nvl(V_COUNT2,0)+nvl(V_COUNT3,0)+2)?>
    2) <?xdofx: xdoxslt:set_variable($_XDOCTX, 'v_l',(nvl(V_COUNT,0)+nvl(V_COUNT1,0)+nvl(V_COUNT2,0)+nvl(V_COUNT3,0)+2)?>
    tried both the syntax but not getting the output.....
    Please let me know your valuable advices how it can be used.
    Thanks
    Rajesh

    Hi kwin,
    Thanks for your reply...
    V_COUNT, V_COUNT1, V_COUNT2, V_COUNT3 are present in data xml. but in different groups..for some parameters V_COUNT or V_COUNT1 will not be present in data file..
    so we will get null value for those...so when i add (V_COUNT+ V_COUNT1+ V_COUNT2+ V_COUNT3) i am getting value as NaN...so i used nvl function it worked fine..but this sum value need to be stored in in a variable..
    Hope you understand...
    Thanks
    Rajesh

  • HT3529 i cannot get text message via voice on my ford touch console after uploading the latest ios7 upgrade.

    i cannot get text message via voice on my ford touch console after uploading the latest ios7 upgrade. Is this an issue with the upgrade or is there a setting on the phone that needs to be fixed?

    I don't know how you received an upgrade for iTunes.  You make it sound like it was sent to you.  At most your computer will tell you of a new version and you tell it to download it and install it.  However, a computer will not do this for a version which is incompatible.  iTunes 10.7 came out a few weeks ago but your computer would not notify you and even if it did, 10.7 would refuse to install on your computer.  So this part isn't making a lot of sense.
    Two ways to get the 'newer version' message.  One is to open your library on a computer running a newer version, and then try to open it with an older version.  Usually happens when the library is on an external and used with multiple computers.  The second way is if you have multiple versions of itunes installed on your computer.
    The newest (and likely the last) iTunes for OSX 10.5.8 is iTunes 10.6.3 which has been out for quite a while. 
    iTunes 10.6.3.25 - http://support.apple.com/kb/DL1575

Maybe you are looking for