Removing punctuation in last name field

Hi all,
I have to write an API to an email system which does not accept punctuation as part of the mailbox. One of the fields I am using to build the mailbox is the persons last name. The problem I am experiencing is the use of punctutation in the last name field with individuals that have names for example like O'Leary, O'Shea, Baker-Newbie, etc... How would one write the syntax to remove punctuation from a column?
Thanks,
Mike

I would consider the Oracle TRANSLATE function:
How you do things depends on what you want to do with the punctuation characters. If you are going to omit then:
TRANSLATE(last_name,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ!£$%',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ')
or something like it (just add the characters to omit to the end of the 'from' string) take care to escape any quote symbols in your from string.

Similar Messages

  • Contacts' first name field gets inserted in last name field when syncing

    I have a strange behavior when syncing between iOS and the Mac:
    A few contacts that I have only have a first name, let's say "Anna".
    Everything runs fine on iOS - I write that person a mail and everything's fine. But the moment I write Anna a mail on my Mac the last name field also gets the entry of the first name field, thus leading to the contact "Anna Anna".
    All I can do now is delete the last name field and everything's fine till I write a message on my Mac again.
    Note: this problem only occurs on my Mac, not on iOS.
    Second ote: the moment I'm sending the Mail on my Mac, iOS gets this error over sync.
    Third note: I recognized that Mail.app's autocomplete/history of contacts has somehow stored those accounts like "Anna Anna". Removing the Previous Recipients from the list hasn't solved the problem yet.
    This problem only covers 4 of my contacts, but being the most used ones this is driving me nuts.
    Any help would be greatly appreciated!
    Best regards,
    Tobi

    Yup have tried resetting the contacts setting to switch it the wrong way round, didn't solve the problem - then back to the correct way round, also didn't solve the problem.
    It's just the way that sometimes it shows firstname then lastname, and sometimes it shows lastname then firstname. Not one or the other but both ways round.
    I have txts in my inbox that are first name first, underneath txts that are lastname first.
    All very confusing I'm sure you can imagine!!

  • Sony Ericsson W580i - Remove Dashes as Last Names

    I used the iSync plugin from http://www.feisar.com to sync my W580i with iSync. Everything went well except for the fact that with contacts that I have input no last name in Address Book they display on my phone with the first name as expected and then a dash ("-") in place of the empty last name. How can I remove these dashes? I have read http://docs.info.apple.com/article.html?artnum=302470 but it just states what is happening. Anyone have a fix?

    I'm afraid there's no further answer I can give.
    Because iSync and the phone require First and Last name to be entered for successful syncing, there's no way to remove the dashes that appear in place of the empty last names. That is the way iSync works around the limitation of phones with a single Name field, rather than separate First and Last name fields.
    If you choose not to enter data required by the phone and iSync, then unfortunately, you have to accept the (probably undesired) side-effects of that decision.
    The solution is quite simple though, and as the Mac Address Book has many more fields than just First name, it makes sense to use them, especially if you happen to know 2 or more people who share the same First name. (It also helps to include people's last names in Address Book's data for when printing postal labels for instance).

  • Moving information from last name field into blank first name field?

    Is there a script (or does anyone know how I can make a workflow in Automator) for moving information from the last name field in Addressbook to the first name field (which is currently blank)? I want to move information from the last name field to the first name field in over 500 addressbook entries, and it would take me all night to do it manually.

    Dear Michael,
    the scenario is like we r implememting portal all our customers around 2000 .
    so we cannt expect them to remember the same spellins as what we gave.
    no one else can change other password as it need to give the id and email correctly
    i have checked it in logon par file.......
    the java files r not included in it..... to modify and deploy it again....
    do u have any idea where we can change it other than java files or how to get this source files

  • Forename moved to the last name field

    There is a problem with the last version of N Suite with outlook contacts. The first sync works fine, once you start a second sync, the forename (first name) is merged to the last name field on the suite AND on the Outlook side. The only way to correct it is to delete all contacts in NS suite, all contacts in the phone, all contacts in Outlook and restore the outlook contacts from a save. Then run the sync ONCE and switch it off. Going back to PC suite is the best until the issue is solved..

    Hello Marc50,
    Could you try to reproduce the error and provide us the system properties and log files?
    Please follow the instructions to collect and submit the log files via this link http://tiny.cc/ja40z
    Thank you in advance!
    Cheers,
    Marina
    Nokia Suite team
    Click on the Star Icon below if my advice has helped you!

  • Last Name fields in Contact List

    Since the update my contact are showing last names.  I have synced with the ATT address book.  However when I try to edit the contact there is no last name in the last name fiield.  So I have no idea how last names got put into my Q10 address book.  Where are they on the Black berry and how to I eidt or delete the last names that have majgiclally appeared.

    Since these must be related issues, let's have one thread, not multiple.
    Contact Missing since upgrade
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • First, Last name fields in Numbers -- Three columns on iWeb page

    I'm new to this (both Numbers and iWeb) and I'm trying to help someone with their page (it's for a local candidate).  They have an excel spreadsheet with names and a bunch of other stuff.  they want to put the list of first and last names on their "supporters" webpage, separated by a space, without having to do it manually -- at this point about 900 such names.
    I can get the names out of Excel and into Numbers, obviously.  And I think I know how to get the list into iWeb, if I can generate it (using an iWeb snippet, which I'd also love help with if anyone here knows THAT as well).
    What I can't seem to do is create a list, in three columns, with First name (single space) last name.  Whatever I put in the formula bar seems not to do anything. And I haven't even BEGUN to figure out how to generate the three-column list.
    Any help would be gratefully appreciated.  As dunce-worthy as possible -- believe me, I won't be offended if anyone talks down to me.

    Hi d,
    I think it's the "three column specification that's throwing me. You might need to clarify that.
    The names are currently entered with First names in one column and Last names in the adjacent column. Here's a way to combine the first and last names into a "full name".
    In the "Full" column, the formula is:
    =B&" "&C
    In Last, First, the formula is:
    =C2&", "&B
    To list the names in a three column table in iWeb, you may need to start with a three column table in Numbers. This one pulls the names from column D (Full) of the table above, and distributes them into three columns. The original table has had four names added, and has been sorted.
    Note that the original table has been named "Data".
    The Data table contains the formula(s) shown above.
    The second table, "Aux", calculates the number of cells needed in each of the three columns so that no column is more than one cell longer than the shortest. Doing this calculation in an auxiliary table greatly simplifies the formulas needed in the final table.
    This table contains a single formula, entered in B2, and filled right to D2. Note that A2 is referenced in the formulas in the final table, "3 Columns". A2 may be empty, contain text, or contain the number zero.
    B2 (and fill right): =QUOTIENT(COUNTA(Data :: $C),3)+IF(MOD(COUNTA(Data :: $C),3)>COLUMN()-2,1,0)
    The third table, "3 Columns" displays the names in three columns.
    It contains a single formula, placed in A1 and filled right to column C and down to row 10.
    3 Columns::A1 (and fill right and down): =IF(ROW()<=Aux::B$2,OFFSET(Data :: $A$1,SUM(Aux::$A$2:A$2,ROW()),3),"")
    Descriptions and further examples for the functions used may be found in the iWork Formulas and Functions User Guide. The guide may be downloaded via the Help menu in Numbers.
    Regards,
    Barry

  • How to remove mandatory field for Last Name in Personal Data Editing Screen

    Hello All,
    CUrrently we are using BP_ ERP5ESS1.31 SP5 & SAP_ESS  603 SP5.
    All my ESS Services are Displaying fine and working from Portal.I am having the requirement like I need to make Last Name as Non-Mandatory field in Personal Data. While Editing the PD Screen, there  i will find the * mark for Last Name filed, i checked through the Global Personalization Make as Mandatory is Not Personalized its showing, i think its defualt prpoerty,so i am unable make any changes from Portal w.r.t Global Personalization.
    I checked in SPRO-- Personal Admin> Custmomizing User Interfaces>Change Screen Modifications, there i find the respective Module pool for those Infotypes and country Specific..
    I cheked forModulePool MP000200--> P0002 and Variable Key-40(For India)  P0002 - NACHIN -- LastName only OF Radio Button is Selected all other Rado buttons are not selected.
    I Checked in V_T588MFPROPS view there for 0002 Infotype P0002 -- NACHN Mandatory check box is Checked all other check boxes are Unchecked.
    How to make that Last Name field as Non-Mandatory in Personal Data Edit Screen, where i need to make the changes.'
    Please list out the Steps..Where i need to do the configuration. And i assigned all the required ESS roles on the backend.
    Thanks in Advance
    Adapag

    Hi,
    I don't think supressing through Global Personalization will change the business logic. Within the Business Logic it checks for the mandatory field.
    After the changes I guess you need to make the changes accordingly.
    The below link might be of some help.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=profile&title=ESSPersonalInformationUIenhancementwithoutmodification&decorator=printable
    Please correct if I am wrong.
    Cheers-
    Pramod

  • Need to remove LAST NAME only in merged letter

    Here's my quandry. Client supplied a mail list with full name in column one. It's okay for the addressing portion, but in the salutation she wants to remove just the last name. I already merged my 2900 name list.
    So I have:
    Mary and John Smith
    123 Main St.
    Your Town, State Zip
    Dear Mary and John Smith,
    Then body of letter.
    I would need a way to search for any space and word before the comma and return in this one line only. Remove the space and last name so the comma slides over after John. I don't want to strip out any other words before a comma. I checked and I believe no line in the letter has a hard return following a comma.
    Doable? If so, how?

    Or you could search for \s[\l\u|\-]+(,)$ and replace with $1 to remove the last name and leave the comma next to the last word in the first name. this must be done as a find/change rather than a GREP style.
    Colin's method is nice in it can be a style, but it leaves "space" between the last visible name and the comma because the text is still present. Colin "escaped" the comma in his version, too, but is seems to make no difference in my test.

  • Duplicate last names when both names in first name field. Keeps repeating.

    When I send e-mails/ reply/ forward to people in my addressbook who have both names in the first name field, the name after the space repeats itself in the last name field. Example: John Doe becomes John Doe Doe after an e-mail.
    Mail is altering this. I've experimented enough to realise that it has nothing to do with syncs or any other program.
    I've seen people have solved this by corretly placing first name and last name in their correct fields. This is NOT an option for me due to the way my Treo works which does not give me the option to organize names by first name. This besides the fact that I have over 500 entries in this manner.
    Irrelevant of this detail, Mail should not be altering address book information this way. There are cases in my country where a person has two first names separated by a space, if I know them in an informal manner I have no interest in having their last name or having AB repeat their second first anme then making me search my treo by last name.
    I'm going to keep bumping this topic until I find some sort of solution or am given one.

    Just ended up taking the time to correct first and last names in their correct fields... screws the view up on my palm, but at least the problem is solved.

  • Remove First & Last Name Validation in Get Support

    Hi All,
       I have enabled the self management of password for portal users. I have to remove the First & Last Name validation  and make it optional, I have also made (ume.logon.logon_help.name_required = false)  in configtool and taken the restart of the server, but still it is validating the names.
    If anyone have removed the validation for the above, can help me.
    Thanks in advance.
    Regards
    Ponnusamy

    Hi Ponnuswamy,
    the right place to remove the validation is the par file of the login page.
    Get the par file from the portal. unzip the par file.
    under the PORTAL-INF\lib u will find the umelogonbase.jar
    Extrat the jar. get the java file named
    SAPMLogonLogic.java.
    Modify the piece of code in the java file.
    private void performForgotPassword()
            throws IOException, UMException, FeatureNotAvailableException {
            String methodname = "performForgotPassword";
            if (trace.bePath()) {
                trace.entering(methodname);
            try {
                String longUid = this.proxy.getRequestParameter(LogonBean.LONGUID);
                if (longUid != null) {
                    longUid = longUid.trim();
                // check for email id
                String email = this.proxy.getRequestParameter("email");
                String lastName = this.proxy.getRequestParameter("lastname");
                String firstName = this.proxy.getRequestParameter("firstname");
                String noteToAdmin = this.proxy.getRequestParameter("notetoadmin");
                IUser userFrom = UMFactory.getUserFactory().getUserByLogonID(longUid);
                if (email.equalsIgnoreCase(userFrom.getEmail()) &&
                        firstName.equalsIgnoreCase(userFrom.getFirstName()) &&
                        lastName.equalsIgnoreCase(userFrom.getLastName())) {
                    // email matched, assign a new password and email to user
                    String newPass = UMFactory.getSecurityPolicy().generatePassword();
                    IUserAccount ua = UMFactory.getUserAccountFactory()
                                                       .getMutableUserAccount(longUid);
                    ua.setPassword(newPass);
                    ua.save();
                    ua.commit();
    this is the original coding.
    remove the check for last name and first name in that
      if (email.equalsIgnoreCase(userFrom.getEmail()) &&
                        firstName.equalsIgnoreCase(userFrom.getFirstName()) &&
                        lastName.equalsIgnoreCase(userFrom.getLastName()))
    complie the java file. get the class and store it in the umelogonbase.jar . put the jar back in the original place. deploy the par.
    u will get the desire result.
    cheers,
    Sithi

  • There's no phonetic first or last name option in add field in contact's.

    Hi, trying to get siri to pronounce a name right so I saw you could just spell it phonetically and it will pronounce it that way, and when I pressed on a contact, and went to add field, there was no option to do it? help!

    this looks sort of normal except both first and last name fields are empty and only FN (full name is present). It should look something like this:
    BEGIN:VCARD
    VERSION:3.0
    N:Smith;John;;;
    FN:All American Grill
    ORG:All American Grill;
    TEL;type=WORK;type=pref:(918) 207-0467
    item1.ADR;type=HOME;type=pref:;;13112 Highway 62;TAHLEQUAH;OK;74464;
    item1.X-ABLabel:bill to
    item1.X-ABADR:us
    X-ABShowAs:COMPANY
    CATEGORIES:Customers:Integrity Service's of Oklahoma
    X-ABUID:40A7F0F6-EBB7-40F5-A990-B54B98771F50\:ABPerson
    END:VCARD
    If you save this vcard in TextEdit and drag it back to the address book it will import and look normal. However, this is, of course not a real solution if you have lots of entries like that. you might try tinkering with the original text file from which you imported the cards and add more fields there.

  • Address Book - Last Name Keeps Repeating Itself!!!

    This has happened for quite some time, and it affects the vCards of those whom I've sent mail to.
    For e.g., the To: field in Mail shows an auto-complete of my name as "Douglas Dielle Dielle".
    When I go to the address book, the vCard entry indeed is shown as "Douglas Dielle Dielle".
    Address Book seems to be adding the extra last name to the last name field because I don't use that field for my contacts.
    I've corrected this umpteen times in the Address Book by removing the last name in the last name field and it's still happening. Cleared the previous recipients list in Mail and it's still happening.
    Is there some option in the Address Book that I should take a hard look at?

    Reason because Entourage some time back had this problem on filling the fields correctly when synching from my PDA. Filling in only the first name was the way to circumvent the problem.
    I don't use Entourage anymore, but have also not altered the name format of my contacts in my PDA though.
    Hope Apple fixes this soon! (Mail version: 2.0.5 / 746/746.2)

  • Mail automatically adding last name to Contact in Address Book

    Here is the problem. I have a contact "John" in my address book. No last name. I have his email "[email protected]" in his card. Whenever I send and receive mails from his email address (In Apple Mail) it automatically adds the last name "Doe" to the last name field in the address book. Is there anyway to stop this?

    It's DEFINITELY a bug! My wife's name is "Jac" and every time I correct the address book to be "Jac" with no surname (or no Christian name and "Jac" as the surname) with in a day or so her contact is listed as "Jac Jac."
    It's not listed this way anywhere else. Her emails to me are listed with her full name, not Jac Jac.
    I just checked and she was in my previous recipients listed as Jac Jac, so perhaps if I remove that entry from the previous recipients of all my machines this might stop. But it must have started somewhere!

  • Sort order changes when adding a phonetic last name?

    I have my contacts sorted and displayed by first name. If I add a phonetic last name to a contact, it changes the order of that person to the top of list. Why wouldn't it leave them in the first name alphabetic order?

    Ok this is what I'm doing...
    My last name is spelled with "liter."
    Siri pronounces that like "a 2 liter of soda."
    So I've added the phonetic last name field on the contact card to help her pronounce it like "lighter."
    On my contact info,
    First name: Bill
    Last name: Hinderliter
    Phonetic last name: Hinderlighter
    If I delete the phonetic last name field... It sorts the contact perfectly.
    If I add it, the contact is placed on top of all the "B's" in the list.
    On a side note... I found another website with a temporary fix to this problem. The person there says to use the nickname field instead of phonetic field when getting Siri to pronounce things.
    http://apple.stackexchange.com/questions/29210/how-do-i-get-siri-to-pronounce-my -name-correctly
    Thanks again for your time.

Maybe you are looking for

  • Am getting the following error while running the servlet example

    Hi, am getting the following error while running the servlet example message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException      edu.dao.StudentDao.inse

  • What makes a file open automatically after download? I'm trying to stop it. I don't know whether Firefox or Sumatra controls this.

    When I downloaded a .pdf file, it opens automatically after download. I want to put it back to where I have to click on it in the download window in order to open it. This happens with every .pdf file I download. I am using Sumatra 1.5.1 to view pdf

  • In Design CS5 and MDM plug-ins

    We are running SAP MDM version 5.5 which is incompatible with In Design CS5. We are still a ways away from our 7.1 upgrade. But we are running CS5 on most of our machines, since the bulk of what we do is not MDM publishing. We have one MDM machine wi

  • How can I submit form data to an outside url after a purchase?

    I'm using BC as the ecommerce portion of a site that sells certificates that people will purchase.  There is an outside developer creating PDF certificates with their info and a custom code.  Does anyone know how I can submit data from purchase form

  • List Control and XML data

    I am trying to display XML data from a HTTPReqeust in a list control. Here's my mxml: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="aircrafts.send()"> <mx:Script>