Sperat full name by the second capital letter to first and last name

hi guys,
I'm facing a problem in sperating a name like " GeorgeWashington " to be " George Washington" .
I'v told there is a function to make space before the second capital letter.
Please help

Good catch as with any of these they are all at best approximations. If oracle gave us access to non capturing sub expressions and word boundaries (similar to ^ and $ but for words) the accuracy could be improved further with less work on our part.
with t1 as (select 'FredMcDonald' name from dual
  union all select 'RonaldMacDonald' from dual
  union all select 'JanDeVries' from dual
  union all select 'MrZ' from dual
  union all select 'MrJohnCEdwardsIII' from dual
  union all select 'MrEdAllanLane' name from dual
  union all select 'Mr.MacMcPhearson' name from dual
  union all select 'Ms.JoanyCunningham-Fonzarelli' name from dual
select rpad('['||
regexp_replace(
regexp_replace(
regexp_replace(
regexp_replace(name,
  '([[:alpha:]]|[.])([[:upper:]])','\1 \2'),
  '([[:upper:]])([[:upper:]])','\1 \2'),
  '((Ma?c)|De) ([A-LN-Z])','\1\3'),
  '([IVX]) ?(([IVX]) ?)?(([IVX]) ?)?$','\1\3\5')
||']',40) s
from t1
S                                       
[Fred McDonald]                         
[Ronald MacDonald]                      
[Jan DeVries]                           
[Mr Z]                                  
[Mr John C Edwards III]                 
[Mr Ed Allan Lane]                      
[Mr. Mac McPhearson]                    
[Ms. Joany Cunningham-Fonzarelli]       
8 rows selected

Similar Messages

  • How to show the First and Last name of the user instead of user name

    Gurus,
    We have the full email id of the user as the portal user name. Right now we are using the "Item Attributes - Current User" to show the user name. We don't want to show this anymore. We would like to show the First and Last name of the user on the Portal page. How can i do this. Please post a reply if you have some idea about it.
    Thanks
    Raj
    ---------

    I believe this is possible using the security APIs. See http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/INDEX.HTML and look for person_info (Returns user information, given a user name)
    under wwsec_api
    Suggest posting any follow-up questions to the Security forum - http://forums.oracle.com/forums/forum.jsp?forum=6

  • How can I display the first and last name using a paramater as employee ID?

    Hi SAP,
    I have a parameter that is called {? Employee ID}.   What I want to do is display the first and last name based on the employee ID value entered in {? Employee ID} in the page header of the report.  Right now, when I put the following formula in the page header only some pages get the right result while other pages dont....
    if table.employeeid = {? Employee ID} then
    table.firstname" "table.lastname
    It appears as though if the first record in the details section on the beginning of each page happens to be the employee under {? Employee ID} then it prints it correctly, if it isn't I get a null value in the page header.
    Anyone have any ideas?
    Z

    Hi Try this,
    Whileprintingrecords;
    if ={?EmpID} then
    Also check the option "Default values for null" in the formula editor.
    Regards,
    Vinay

  • How can i change the ID on my wifi so it doesn't include my first and last name?

    How can I change the ID on my Wifi so it doesn't include my first and last name when others see it?

    If you are still having difficulty
    Open Macintosh HD > Applications > Utilities
    Locate the listing for AirPort Utility and Right Click on it
    Click Get Info
    Look for the Version in the next window that should appear on the left side of your screen.

  • Displaying current user's first and last name on a report.

    I would like to dispay the current user's name on a report. I've tried using User() and NQ_SESSION current user .
    These two options display the User ID (i.e. User name is Jon Smith. there ID is COMP/JSMITH.
    Using the two methods above the ID (COMP/JSMITH) is displayed. Is there a way I could display Jon Smith?
    I thought their might be a way to use Full Name or First and Last Name.
    Message was edited by:
    user618827

    VALUEOF(NQ_SESSION.DISPLAYNAME) will do the trick
    Mike L

  • How do I bulk edit contact's nicknames to first and last names?

    i imported contacts to the contacts app and they all say "NoName".
    i click on one of them and the first and last name fields are empty but the nickname field has the first and last name in it.
    how can i bulk edit 1120 contacts to change the full nickname to a first and last name?
    ex: "First"  ~  "Last"  ~  "Nickname"
           "Blank"  ~  "Blank"  ~  "John Smith"
    i want to to be:
           "John"  ~  "Smith"
    help me create an applescript or use a program or something cuz its killing me....thanks
    ohh and i used both of the following applescripts and nothing happened:
    tell application "Address Book"
       set all_Persons to every person in group "Test"
       repeat with per_son in all_Persons
           set nknm to per_son's nickname
           set per_son's first name to word 1 of nknm
           set per_son's last name to word -1 of nknm
       end repeat
    end tell
    ANDDDDDD
    tell application "Address Book"
       set {ASTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, space}
       repeat with onePerson in (get people whose nickname is not missing value)
           set N to text items of (get nickname of onePerson)
           tell contents of onePerson
               set first name to text items 1 thru -2 of N as text
               set last name to text item -1 of N as text
           end tell
       end repeat
       set AppleScript's text item delimiters to ASTID
    end tell
    neither did anything...

    to any1 that wants to use the scripts and have them work just type "save" on the next like after end tell and itll do it........

  • Problems with envelope-printing in Address Book: First and Last names

    New entries I make in Address Book are printing incorrectly, with Last name then First name. Most of my older entries print correctly as First name then Last name (though oddly I have a small batch of entries I imported ages ago which have always exhibited the same transposition problem).
    I have prefs set to display entries by Last name. Problem entries WILL print correctly if I change this to 'display by First name'. (older entries print correctly regardless of 'display by..' pref).
    I'm having the same problem if I create a new account, which made me suspect the app was corrupted, but not helped by deleting app and re-installing from Tiger DVD then running combo updater.

    Thank you for the suggestion.
    However, it doesn't make sense for the LIST display-order to swap the first-and-last names on an ENVELOPE. Secondly, most of my entries DO print correctly: it's only NEW entries that transpose the first and last names.

  • After installing some updates on final cut pro 7 is asking me to enter my first and last names plus serial number which i dont have. how do i go about this?

    After intalling some updates for Final cut, I m asked to put my first and last names and serial number which unfortunatelt i do not have. how do i go about this?

    To add to what BenB advised, make sure you have proof of purchase when you call Apple for a replacement serial number.
    For future reference, it is a good idea to keep all software serial numbers in a database or text document.  Considering the cost of the software, keeping a list of serial numbers can come in very handy at times like this.
    -DH

  • First and Last Name Swapping

    Address book in Leopard does not have the Swap First Name with Last Name in the drop down menu on the desk top tool bar. All my addresses are indexed with last name first, and I want to continue to keep my records this way. Does anyone know where the Swap First and Last Name control is in Leopard Address Book? Thanks

    Hi:
    The menu items have been renamed somewhat in Leopard. I don't have Leopard in front of me at the moment, but this option should still be available on a per-card basis (or per a selection of cards) within Address Book's Card menu. And the global setting in preferences will affect all of the cards that don't have this setting customized individually.

  • E-Recruitment business partner objects missing First and Last Name

    Hi,
    We are on Netweaver 2004s and ERecruitment EHP3...it's installed on production but not activated.  We are finding a bunch of BP records that exist where there is no First and Last Name on them, however the CP object does have this data.  We can't figure out what is causing this to happen to some candidates?  It appears to only be the case on External/Unregistered Candidates.
    Thanks,
    Michelle

    Hi Michelle,
    could you share the number of the note?
    Kind regards
    Roman

  • HT202058 iphone 6+ somehow has switched my name on emails into my nephew's name. We share a first and last name but not a middle name. For example, my name might be John George Doe and his name John James Doe. How did this happen? How do I correct it.

    iphone 6+ somehow has switched my name on emails into my nephew's name. We share a first and last name but not a middle name. For example, my name might be John George Doe and his name John James Doe. How did this happen? How do I correct it.

    So if the solution recommended by Ralph is not working then the other option is this:
    Please make sure that the emails work correctly when signed into, on a computer
    Then delete the account off your phone - you will not lose the emails
    Reset the phone
    Re add the account back in and see if that helps the issue
    Thanks

  • Lack of First and Last Name Reversal in Address Book

    I just got a new iMac and transferred the contents of my old eMac running on OS 10.3---(latest) using the Mac transfer system. Problem: in the address book most of the cards do not respond to the Preference setting for First or Last name first. Some do, they toggle back and forth as I change the setting, but most stay unchanged with the Last name first. All respond properly to changes in the sort setting.

    I know the phones only have a single Name field, but there is such an option to change the sort order and display! Did you look in the menu I listed?
    I've just tried it with 5 Sony Ericsson phones I have with me here (W610, K800, K510, Z610 & W200) and that I use iSync with on a daily basis and the option is there and it works perfectly.
    It's in the W810 manual on Page 62:
    http://www.sonyericsson.com/cws/support/products/userguides/w810i
    where it says:
    "To select sort order for contacts *> Contacts > Options > Advanced > Sort order* to select sorting by first or last name"
    With *Sort order* set to *By first name* it displays:
    Anne Baker
    Bill Smith
    Charles Jones
    With *Sort order* set to *By last name* it displays:
    Baker, Anne
    Jones, Charles
    Smith, Bill

  • Search employment verification database by first and last name

    hi
    can anyone please tell me from which info types do i have to get the data???
    this is in compensation management
    thanks
    sateesh

    Sateesh,
    I am assuming that you are trying to build a search help using SSN (surprised), first name and last name.
    I believe for this you can just use infotyypes 2 or 3. i dont what field in those infotypes your company is using to store SSN.
    I dont think you need to use any other ifoctypes like 267 etc.
    Thanks,

  • How to split 'Full Name' into two columns for 'First' and 'Last' name??

    Any ideas on how to achieve this? http://office.microsoft.com/en-us/excel-help/split-names-by-using-convert-text-t o-columns-HA001149851.aspx

    If:
    A1 = Fistname Lastname
    For firstname:
    (First Name) B1 =SUBSTITUTE($A1," " & $C1, "")
    For the Last name:
    (Last Name) C1 =RIGHT(A1,LEN(A1)-FIND("#",SUBSTITUTE(A1," ","#",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))
    If
    A1 = Lastname, Firstname
    (Last Name) B1 =SUBSTITUTE($A1,", " & $C1, "")
    (First Name) C1 =RIGHT($A1,LEN($A1)-FIND("#",SUBSTITUTE($A1," ","#",LEN($A1)-LEN(SUBSTITUTE($A1," ","")))))
    Let me know if you need one that traps multiple commas or middle names.

  • Syncing with Outlook is reversing first and last name

    In Outlook 2007 when I add a new contact and type in the full name (say John Doe) it puts in the full name field "John Doe" and files it as Doe, John. This is how I have always done it and all of my contacts are setup like that.
    When I add a contact from my iPhone and sync it with Outlook, it transfers over the data fine but when it inserts the new contact it files it as lastname, firstname (as it should) but also puts lastname, firstname in the "Full Name" Field (ie Doe, John).
    Is there any way to have it sync contacts from the iPhone to Outlook and keep the Full name as "Firstname Lastname" instead of inserting it as "Lastname, Firstname". I feel as though I've tried everything in Outlook 2007 that I can think of with no luck.
    Normally I would just change Outlook to work the way the iPhone inserts the contacts, but I use Plaxo to sync with my Macbook and Address Book tends to switch the contacts around, back to the way it should be (firstname lastname).
    Any help would be a lifesaver! Driving me nuts...
    iPhone   Windows XP Pro  

    The setting in AB's preferences controls the display order. On a person's card, you can have the contents of the first name field in the database displayed before or after the last name field.
    When mail adds an address to the address book data base it uses the information in the From: header. It assumes that text such as "Joe Soap"<[email protected]> consists of first name Joe last name Soap and address [email protected] If however the header appears as "Joe, Soap"<[email protected]> then mail will put Joe in the last name and Soap in the first name fields in the AB database.
    Basically, the order of names in the AB database is dependant on how your sender (or their mail program) has formatted the From: header.
    I think.
    AK

Maybe you are looking for

  • Need help to check multiple conditions and set AD user properties

    hello All, I have a data csv sheet where information as follows, using below information I need to update AD account attributes based on below conditions . I have full right and I can set any user properties. So this is not access right issue.    sam

  • Repeat delta in BI

    Hi, My delta load worked fine but my PSA load via DTP failed due to an incorrect data. How can I do another load by scratch and repeat the delta? Do i need to delete the PSA and turn the delta load to "red" for BI to realize the delta did not happen?

  • Sending IDOCs to R/3: Error in SXMB_MONI: Obligatory element missing

    Hi, after sending IDOCs to R/3 we saw that we forgot to maintain IDX2. Know IDX2 is OK. But we get an error IDOC:Obligatory element  xyz missing. This cannot be, because we also send this IDOCs to another R/3 an everything works fine. I already refre

  • Oracle 10g Database Server or Oracle 10g Application Server

    Greetings and Salutations! I need to install APEX 3.01 for development purposes and I'm wondering if I need to do an Oracle 10g Database Server installation, an Oracle 10g Application Server installation, and then the APEX 3.01 installation, or is th

  • No Recent Photos?

    I can't figure out why my iPhoto will not update the Last 6 Months album. It also shows July 8, 2012 under Recent. My Last Import album is correct, but why would the other two be old material? I t's been that way for a while obviopusly, and I just up