Need help pulling a name string

Hello I'm on Oracle 11 GR 1 material and have a strings of data like these:

SMITH, KAY C. RN, FNP
WESTON, DEBRA, L
ASH, CHRISTOPHER, J., PA - C
EYEBROWS, CATHERINE J MSN NOCD
ASH, MICHELLE
NASH, BOB MC T MD
BROWN-JONES, LARRY RN

I need to enter these:
LAST_NAME
FIRST NAME
MI
CODE (the first one)

So, if we where to watch again the data after it is pulled apart, I would like to see this:
 
LAST_NAME     FIRST_NAME     MI    CODE 
SMITH         KAY            C     RN 
WESTTON       DEBRA          L       
ASH           CHRISTOPHER    J     PA-C 
BROW          CATHERINE      J     MSN 
ASH           MICHELLE 
That's what I have (this code will be executed on an external Table with 1.5mil lines):
 
select 
    substr('SMITH, KAY C. RN, FNP',1,instr('SMITH, KAY C. RN, FNP',',')-1) as LAST_NAME, 
    regexp_substr(SMITH, KAY C. RN, FNP', '[^, ]+ ') as FIRST_NAME 
from dual; 
I don't know how to get the rest.

Thanks for any help

Published by: Sky13 on September 23, 2011 12:04
I added a few samples more

Hello

Look at the data and try to find some patterns. You will not be able to get everything right, but you may be able to make the most of them.
I would look for things:
There always at least 1 comma in the chain? Are you sure that what comes before the (first) comma is always a name?
When there are 2 commas, codes never come before the 2nd comma?
Codes always come after the names?
What parts are sometimes missing? How many times they lack?
Never just 1 character codes?
Some codes occur very frequently?
Is this practice to create a table of the most common codes, or even all the codes?

It will be much easier in PL/SQL.
You can write a procedure which takes 1 IN argument (the plain text) and 5 on arguemnts:
(1) first name
(2) first name
(3) other initial
(4) code
(5) a number indicating what is the probability that the results are correct. For example, 100 may indicate a very simple string, such as "Dyer, Mary. You can print the with the lowest number for some person to review manually.

Good luck!

Tags: Database

Similar Questions

  • Need help to split a string

    Hello

    IM needing help to cut a string like this... A, B, C, ADV, RAHEEM, MOUSTAFA, Gauthier,... compare letters he's be numbers, but I get by using a string... Need to divide and put each number into a vector, in all positions...

    Can someone help me?  ..

    I'm using labview 6...

    Here is the screenshot of my logic...

    Hi faelnpaiva,

    all you need is 'String of spreadsheet in table' with a ',' as the delimiter.

  • Need help return correct name of a created the code clip

    Hello. I'm a n00b AS3 with fortunately we a simple question I am designing a simple flash game. Copy the following code creates an array of video clips and the bsigns a photo for each of them. It is a map screen. What I need, it is when I click on one of the created movie clips, I need to return either the index of the item in the table or the name of the clip. Basically everything that I can use to differentiate them in the code. Here is the code:

    import flash.display.MovieClip;
    var MapLoader:Array = new Array();
    var strJPGext:String = ".jpg";
    var intContTileNumber:int;
    var strContTilePath:String;
    var intDistStartX:int = 63;
    var intDistStartY:int = 64;
    var intDistMultiplyY:int = 0;
    var intDistMultiplyX:int = 0;
    var intDistCount:int = 0;
    var MapSquare:Array = new Array();

    for (var i: int = 0; i < 729; i ++)
    {
    var MapSquare:MovieClip = new MovieClip();
    MapSquare.push (new MovieClip());
    MapSquare [i] .x = intDistStartX + (intDistMultiplyX * 30);
    MapSquare [i] there = intDistStartY + (intDistMultiplyY * 30);
    MapSquare [i] .name = "MapSquare" + i;
    addChild (MapSquare [i]);
    intContTileNumber = i;
    MapLoader.push (new Loader);
    strContTilePath = intContTileNumber + strJPGext;
    MapLoader [i] .load (new URLRequest (strContTilePath));
    MapSquare [i] .addChild (MapLoader [i]);

    intDistCount ++;
    intDistMultiplyX ++;

    If {(intDistCount > 26)
    intDistCount = 0;
    intDistMultiplyX = 0;
    intDistMultiplyY ++;
    }

    }

    stage.addEventListener (MouseEvent.CLICK, reportClick);
    function reportClick(event:MouseEvent):void
    {
    trace ("name of the movieClip Instance =" + event.target.name);
    }

    Now, it all works very well, it creates the plan and assigns the correct image and places them in the good X, position Y and this is the good 27 x 27 squares grid. The problem is with the name, when I click on the clip, it returns "Instance2" or "Instance5" or something else. It starts by 2 and then increases each number by 3 for each clip, so the first is 2, then 5, then 8 and so on. This is not good. I need to return the name I have given
    . If I put the code in trace(MapSquare[1]) it will return the name 'MapSquare1' so I know has been assigned the name, but it is not returning.

    Please help

    Thank you

    -Red

    Add event listeners just like anything else you set in the loop for...

    MapSquare [i] .addEventListener (MouseEvent.CLICK, reportClick);

    They can all use the same event handler function, so there is no problem.

  • need help on the name of the column in double materialized view ORA-00957

    I have a query, long enough and several (8ways) joins.

    When I run it as a SQL query, it is fine.

    When I add create materialized, view myViewName it errors with
    ORA-00957: duplicate column name.

    How is there is no problem when executing the SQL statement, and how to fix this?

    Thank you.

    Hello

    Columns in a query do not need a unique name:

    SELECT     dummy
    ,     dummy
    FROM     dual;
    
    D D
    - -
    X X
    

    At least not in SQL * Plus; other front ends might oppose it.
    In previous versions of Oracle, subqueries (such as online views) does not need to have unique names, but you've got an error if you tried to reference a non-unique column (and it is unnecessary to have the column if never reference you).

    Columns in a table or a view need unique names:

    CREATE OR REPLACE VIEW view_x
    AS
    SELECT     dummy
    ,     dummy
    FROM     dual;
    
    ,     dummy
          *
    ERROR at line 4:
    ORA-00957: duplicate column name
    
  • [Help] Need help to remove a string in the text file

    Hi all

    I have a text like this

    REPORT

    Wednesday, June 10, 2015 14:31:56

    **********************************************************************************

    HOST: 10.9.1.185

    TestVM is turned off

    **********************************************************************************

    HOST: 10.9.0.84

    All virtual machines are turned off

    **********************************************************************************

    HOST: 10.9.0.85

    **********************************************************************************

    HOST: 10.9.0.86

    I want to remove the

    **********************************************************************************

    HOST: 10.9.0.85

    **********************************************************************************

    HOST: 10.9.0.86

    because there is no information after the HOST 10.9.0.85 or: 10.9.0.86

    It will reduce the content of the report

    I need a script to delete this text

    Could someone help me?

    Thank you for your help

    What generates the report? It is probably easier to just do not write to the file in the first place...

  • Need help pulling information data store multiple vCenters VM

    Thanks to the magic of Google and trial and error, I was able to develop the script below. The metric of the final I want to put the name of the data store the virtual computer is on and I can't for the life of understand me how do.

    $myCol = @)

    $TimeStamp = get-Date-format YYYY - MM - DD

    Game-PowerCLIConfiguration - multiple DefaultVIServerMode - confirm: $true | Out-Null

    $vcenters = @)

    "Server1."

    "Server2."

    "server3"

    "server4.

    );

    Connect-VIServer-Server $vcenters - username username-password password

    ForEach ($Cluster Get-cluster)

    {

    ForEach ($vmhost in ($cluster |)) Get - VM))

    {

    $VMView = $VMhost | Get-View

    $VMSummary = "" | Select Date VMName, NOMCLUSTER, MemorySizeGB, LogicalCPUs, ProvisionedSpaceGB, ResourcePool, DataStore

    $VMSummary.Date = $timestamp

    $VMSummary.VMName = $VMhost.Name

    $VMSummary.ClusterName = $Cluster.Name

    $VMSummary.MemorySizeGB = [math]: round ($VMHost.memorymb/1024, 2)

    $VMSummary.LogicalCPUs = $VMHost.numcpu

    $VMSummary.ResourcePool = $VMHost.ResourcePool

    $VMSummary.ProvisionedSpaceGB = [math]: round ($vmhost. ProvisionedSpaceGB, 2)

    $myCol += $VMSummary

    }

    }

    $myCol | Sort VMName | Export-CSV C:\VM-$timestamp.csv

    Any help would be appreciated.

    Thank you!

    Looks like you may be using an old PowerCLI version.

    Make one

    Get-PowerCliVersion

    What did he say?

    Upgrade to 5.5 R1

  • Need help with the query string manipulation

    Hello

    With the help of 10.1.0.4.2

    Given a table called PREFIX_CODES that contains a column called PREFIX_CODE
    with the following data:

    PREFIX_CODE - VARCHAR2 (20)
    -------------------
    AAA
    BENAMER
    CARTER

    and another table called SUBSCRIBERS with a column called SUBSCRIBER_ID
    with the following data:

    SUBSCRIBER_ID - VARCHAR2 (30)
    ---------------------
    BBBB-123456
    AAA-444444
    DD-2222222
    EEEE-888888

    Is there a query that will pull all the SUBSCRIBER_ID that begin with
    each of the PREFIX_CODES? The following query is not valid, but it
    This will give you an idea of what I'm trying to do:

    SELECT SUBSCRIBER_ID
    SUBSCRIBERS
    WHERE AS SUBSCRIBER_ID (SELECT PREFIX_CODE |) » %'
    OF PREFIX_CODES)

    Using the data from above, I would like that the query to return:

    BBBB-123456
    AAA-444444

    Thanks for your help!

    Hello

    Welcome to the forum!

    You were on the right track. To find if a given subscriber corresponds to any prefix_code, you can do an EXISTS subquery:

    SELECT     subscriber_id
    FROM     subsribers     s
    WHERE     EXISTS ( SELECT  NULL
                      FROM      prefix_codes
               WHERE      s.subscriber_id     LIKE prefix_code || '%'
                )
    ;
    

    This will tell you if at least a prefix code. It won't tell you exactly how many, or what they were.
    Your message, I'm guessing that there may be more than one, and you can deduct the subscriber_id itself, then the above query should work for you.

  • Need help to split the string into two fields

    Can someone share your thoughts by dividing the prod_info string below into two fields

    For example:-TABLE of PROD

    SOURCE TABLE

    SNO PROD_INFO
    120 OZ SIMILAC
    2HW PRO 10
    3REX 10 OZ
    4AAA 10
    5BBB 2000
    6CCC 10 LB
    7DDD 2021
    8EE 12 KG
    9KK 11111
    10ZZ ABC FAC 11
    11RKW DD CC 12 OZ
    1212KJ 12 LBS.

    EXPECTED RESULTS

    SNO PROD_INFO PROD_VAL
    1SIMILAC20 OZ
    2HW PDR10
    3REX10 OZ
    4AAA10
    5BBB2000
    6CCC10 LB
    7DDD2021
    8EA12 KG
    9KK11111
    10AEC ABC ZZ11
    11RKW DD CC12 OZ
    1212KJ12 LBS.

    with

    as Prod

    (select 1 sno, "SIMILAC 20 OZ" prod_info of all the double union)

    Select 2, 'HW PDR 10' from dual union all

    Select 3, 'REX 10 OZ' from dual union all

    Select option 4, "AAA 10' from dual union all

    Select 5, "BBB 2000"of the dual union all

    Select 6, 'CCC 10 LBS' double union all

    Select 7, 'DDD 2021' from dual union all

    Select 8, 'EE 12 KG' from dual union all

    Select 9, 'KK 11111' Union double all the

    choose 10, "ZZ ABC FAC 11' from dual union all

    Select 11, 'CC DD RKW 12 OZ' from dual union all

    Order 12, '12KJ LB 12' double

    )

    Select sno,

    (prod_info regexp_substr(prod_info,'^((\d*|\w*)[^[:digit:]].*) \d',1,1,null,1).

    regexp_substr (prod_info,' prod_value (\d+.*)$',1,1,null,1))

    Prod

    SNO PROD_INFO PROD_VALUE
    1 SIMILAC 20 OZ
    2 HW PDR 10
    3 REX 10 OZ
    4 AAA 10
    5 BBB 2000
    6 CCC 10 LB
    7 DDD 2021
    8 EA 12 KG
    9 KK 11111
    10 AEC ABC ZZ 11
    11 RKW DD CC 12 OZ
    12 12KJ 12 LBS.

    Concerning

    Etbin

  • Need help to parse a string in data

    Hi all

    I have some information coming out of a management system of files that looks like:

    REGATTA PLAZA ETA (responsibility of: ETA Regatta Plaza, completed on 16/08/2013 09:11)

    REVIEW of CSO (responsibility of: Matthews, Darlene, completed on 03/09/2013 10:53)

    MOUNT PEARL ETA (responsibility of: Mount Pearl ETA, finished the 06/09/2013 12:28)

    REVIEW of CSO (responsibility of: Matthews, Darlene, due 2013/09/10 12:29 (late 5 days, 2 hours, 10 minutes))

    I added flashbacks for readability

    I want to produce four rows of chain, with:

    Action (the tip before the opening parenthesis)

    Manager (the bit after "the responsibility of:"at the beginning of the parenthesis ")

    A completion date, iff, it was completed or

    A due date (if it was not completed and is always due)

    I'm sure it can be done easily with REGEXP and sort of CONNECT BY tip to get multiple lines, but I'm not really up on top of one of these things. It gets quite messy using substr and instr (attempt below, I also know deals not with the second and fourth records (the person responsible is "Matthews, Darlene" that has a comma in there).)

    Thank you very much

    Jon

    with parse_string as (select 'REGATTA PLAZA ETA (Responsibility of: Regatta Plaza ETA, Completed on 2013/08/16 9:11 AM.) CSO REVIEW (Responsibility of: Matthews, Darlene, Completed on 2013/09/03 10:53 AM.) MOUNT PEARL ETA (Responsibility of: Mount Pearl ETA, Completed on 2013/09/06 12:28 PM.) CSO REVIEW (Responsibility of: Matthews, Darlene, Due 2013/09/10 12:29 PM (Overdue 5 Days, 2 hours, 10 minutes))' ts from dual)
    --
    select substr(ts,1,instr(ts,'(')-1) action,
           substr(ts,instr(ts,'(')+19,instr(ts,',',instr(ts,'(')+1)-instr(ts,'(')-19) responsible,
           CASE WHEN instr(ts,'Completed',instr(ts,',',instr(ts,'(')+1)+1) >0 then 
            to_date(substr(ts,
                instr(ts,'Completed',instr(ts,',',instr(ts,'(')+1)+1) + 15,
                instr(ts,')',instr(ts,',',instr(ts,'(')+1) + 15)     -- endpos
                  - instr(ts,'Completed',instr(ts,',',instr(ts,'(')+1)+1) - 16),'yy/mm/dd hh:mi am') -- startpos
               else NULL end completed_date
    from parse_string;       
    
    

    Hello

    If you are going to do this in pure SQL, you really want to use regular expressions, like this:

    WITH separate_rows AS

    (

    SELECT REGEXP_SUBSTR (ts

    , '[^)]*\)+ *'

    1

    LEVEL

    ) AS str

    OF parse_string

    CONNECT BY LEVEL<= regexp_count="" (ts,="">

    )

    SELECT REGEXP_SUBSTR (str

    , '^[^(]*'

    ) AS action

    REGEXP_SUBSTR (str,

    , "The responsibility of: (.)» *) (, (completed |)) EUM))'

    1

    1

    NULL

    1

    ) Responsible.

    TO_DATE (REGEXP_SUBSTR (str

    , ' Finished (\d + / \d + / \d+ \d+:\d+ (AM |)) MP))'

    1

    1

    NULL

    1

    )

    , ' YYYY, MM, DD, HH: MI AM'

    ) AS completed_date

    TO_DATE (REGEXP_SUBSTR (str

    , ' Maturity (\d + / \d + / \d+ \d+:\d+ (AM |)) MP))'

    1

    1

    NULL

    1

    )

    , ' YYYY, MM, DD, HH: MI AM'

    ) AS end_date

    OF separate_rows

    ;

    Output:

    ACTION COMPLETED_DATE MANAGER END_DATE

    ------------------ ------------------ ------------------- -------------------

    REGATTA PLAZA ETA Regatta Plaza ETA 2013/08/16 09:11

    CSO REVIEW Matthews, Darlene 2013/09/03 10:53

    MOUNT PEARL, Mount Pearl ETA ETA 2013/09/06 12:28

    CSO REVIEW Matthews, Darlene 2013/09/10 12:29

    If something that is easier to maintain (for example, does not require the knowledge of regular expressions) is a priority, then write a PL/SQL function.  Be able to use freeely vaiables and uses an IF-THEN-ELSE logic, will make it much easier to maintain.

  • Computer laptop touch screen 15: need help - restore Partitions, OS system, start-up and drivers!

    [Need help]

    Device name: laptop touch screen, Energy Star, 15.

    Model number: 15 - f023wm

    Device status:
    [Grandma] "I broke the internet.
    [Me] "No, I have demolished just any chance I had as a computer programmer.
    I'll never do it to heaven now... »

    You want to come: difficulty this laptop!

    -Packing plant (Reset/retrieve)

    -Retrieve/Re-restore boot loader

    Retrieve/recreate/Re-restore all original scores.
    -Retrieve / Re - restore all the Original system & hardware drivers.

    -Retrieve/Re-restore Windows 8.1.

    -Possibly find computer Tech/Geek fellow/Pal.

    -Learn something new! (Not including the common sense).

    Explanation:
    -J' was too high as he tried to become the next Bill Gates and create a calculation method in which the processor completely laws of physics bi-passes.

    Topical issues:

    (1) I have little experience, I'm sure compared to most of the users on this forum; However, in the College computer Programmning.

    ---> Very adept in acquireing newly introduced information & request a great sense of understanding of puzzled, abstract and largely serious concepts. (It will be just a little easier than most to explain a simple fix).

    (2) I deleted all partitions, including the system files, System opperating, some methods of starting, all the drivers, and to add to the mess, the existing partitions are not yet check the size or formatting - I'm sure.

    ---> (Drive C is 400 GB;) Drive D is the main partition with only 20 GB)

    (3) any chance of installation/download are only feasible when my boyfriend does everything it does and 'fixed' the laptop.

    ---> Cell phone MAY start, can use internet and MAY be able to download 5 pictures before the system shuts down and the other requires a few hours to wipe the minimum amount of space on the hard disk before you reinstall Windows.

    (4) Windows 7 is the only OS (so far) that we are able to install; We have no other disks, but Windows 8.1, I think, was the original Opperating system and look forward to this return.

    (5) I don't know yet how I will receive notification here on these forums. I'm drunk at 05:59, so I'll find out tomorrow.

    ---> Assuming that I remember I wrote it.

    And I think that's all that I need a little help with if you want messages me or live chat to help solve this problem, I think that Skype is aloud; and in all the uncertainties, it is listed on my profile.

    Thank you, & your best.
    Caleb D. Parker
    @CiDiParks25

    CiDiParks25

    What will work restores your computer to its original factory state using HP recovery media.  It is a DVD and CD set that will erase the hard drive (removing all data, applications and settings, reinstall the original OS, drivers and utilities for HP. In some cases, you will be able to order a USB instead of discs.  You must order at HP; they cannot be downloaded.

    The link is on the software page and download drivers for your PC: http://support.hp.com/us-en/drivers/selfservice/HP-15-Notebook-PC-series/7137590/model/7484025

    Once there, scroll to the bottom of the page and you will see an entry for the command Recovery Media-CD/DVD/USB. Click on the symbol '+' to expand this entty and click on order to press for more details.

    Or, if you prefer, you can do the same by contacting HP Customer Service:

    If you live in the United States or the Canada, details are on this page: http://www8.hp.com/us/en/contact-hp/phone-assist.html#section1

    If you live elsewhere, contact details are on this page: http://www8.hp.com/us/en/contact-hp/ww-contact-us.html

    Note that if HP no longer provides a recovery media for your model, a few other sites, you can check are: http://www.computersurgeons.com/ and http://www.restoredisks.com/

    Don't forget to read through the material in the linked thread before attempting the recovery: http://support.hp.com/us-en/document/c00707939

    Good luck

    I'm a volunteer and I do not work for, or represent, HP.
    ========================================================================
    If you feel that my suggestions helped you, please click on the thumbs-up symbol to say thank you!

    If they helped to solve your problem, please click 'Accept as Solution' to help others find similar information.

  • Need help with a string here

    I am trying to write a script that will restart a group of virtual machines. If they fail to restart nicely, I stop them and restart with stop-vm and vm-start. Then, I myself by e-mail a report as to how this happened.

    I'm generating the body to report e-mail by using a string here, but it does not work and I have tried everything I can think. Any help would be appreciated. I've removed things that are sensitive to my company:

    < code >

    Add-pssnapin VMware.VimAutomation.Core

    . c:\temp\mike\Export-PSCredential.ps1
    $rebooted = @("")
    $kicked = @("")
    $kicklist = @("")
    $nobootlist = @("")

    New-VIProperty-name BootTime - ObjectType VirtualMachine-value {param ($vm) $vm. ExtensionData.Summary.Runtime.BootTime.ToLocalTime ()} - Force

    SE connect-VIServer xxxxxxx.company.name - Credential $(Import-PSCredential-chemin d'accès c:\temp\mike\credentials.enc.xml)

    $TrainPool = get-file TrainingPool | Get - VM
    foreach ($myvm in $TrainPool) {Restart VMGuest - VM $myvm - confirm: $false}

    sleep 300
    $CurrentTime = get-Date
    $MinsAgo = ($CurrentTime).addminutes(-30)

    foreach ($myvm in $TrainPool) {if ($myvm.boottime - lt $MinsAgo) {}}
    {$kicklist += $myvm}
    else {$rebooted += $myvm | select name, distribution}
    }

    foreach ($kick in $kicklist) {stop-VM - $kick VM - confirm: $false - RunAsync}

    sleep 60; $kicklist | Start-vm - runasync; sleep 120


    $CurrentTime = get-Date
    $MinsAgo = ($CurrentTime).addminutes(-30)
    foreach ($kick in $kicklist) {if ($kick.boottime - lt $MinsAgo) {$nobootlist += $kick}}
    else {$kicked += $kick | select name, distribution}
    }

    "$mailMessage = @".
    Restarted successfully these VM:
    $rebooted


    Forced these s VM to restart:
    $kicked


    It would not be possible to restart - need to check:
    $nobootlist
    "@

    Send-MailMessage-to [email protected] -of [email protected] -Credential $(Import-PSCredential-chemin d'accès c:\temp\mike\credentials.enc.xml)-sujet «Redémarrage programmé dele de bassin d'entraînement VM»-corps $mailMessage-SmtpServer smtp.company.com )

    < code >

    The mail comes, but the body only contains things that I typed in the here-string (e.g. "restarted the VM with success:", etc..)

    Thanks for your time.

    Mike

    Hello, mike_sims-

    It seems that there is a problem with the way you're trying to ouput info from the virtual machines.  These three elements that hold the info from the virtual machines are tables and will not be converted to strings as you might think.  So try to use the out-string cmdlet on these three tables in the here-string, such as:

    ...$mailMessage = @"Rebooted these VM's successfully:$(Out-String -Input $rebooted)
    
    Forced these VM's to reboot:$(Out-String -Input $kicked)
    
    These wouldn't reboot - need to check them:$(Out-String -Input $nobootlist)"@...
    

    This should then put the string - the equivalent of their production in the $mailMessage variable, and the email should have the info you're after.  How does do for you?

  • String conversion, need help

    I have the String I need to convert a RichTextField

    Here is my String

    "Hello World.

    some text here

    I'm new here text here

    I really need help

    "Help me.

    I want to get

    Hello world

    some text here

    I'm new here of the text here

    I really need help

    Help me

    no idea how to do it?

    Does that help?

    http://supportforums.BlackBerry.com/T5/Java-development/simple-HTMLTextField-implementation/m-p/4543...

  • Urgent need help with String Manipulation

    Hello;
    I really need help with strings.

    Let's say I have these channels:
    \\ABC\DEF\GHI\xyz\xyz\xyz\xyz

    \\ABC\DEF\GHI\xyz\

    \\ABC\DEF\GHI\xyz\xyz\xyz\

    \\ABC\DEF\GHI

    \\ABC\DEF\GHI\

    ABC/DEF/GHI/xyz/xyz/xyz/xyz

    ABC/DEF/GHI/xyz /.

    ABC/DEF/GHI/xyz/xyz/xyz /.

    ABC/DEF/GHI

    ABC/DEF/GHI.

    I need to convert them using a SQL statement for:
    \\ABC\DEF\GHI\xyz\ or //ABC/DEF/GHI/xyz/ according to the original management / or \. Please note that the "xyz" may be repeated zero or more times. I just need one end with a trailing / or -if she had one first.

    I'm on Oracle 11.1.6 SE. I have a bunch of attempts with instr, substr and replace, but I think that regexp_replace could be better.
    Any help would be GREAT! I have a whole team waiting on me.

    Hello.

    Here is a way.

    -----------------------------------------------------------------------
    with sample_table as
    (
         select '\\ABC\DEF\GHI\xyz\xyz\xyz\xyz' str from dual union all
         select '\\ABC\DEF\GHI\xyz\' from dual union all
         select '\\ABC\DEF\GHI\xyz\xyz\xyz\' from dual union all
         select '\\ABC\DEF\GHI' from dual union all
         select '\\ABC\DEF\GHI\' from dual union all
         select '//ABC/DEF/GHI/xyz/xyz/xyz/xyz' from dual union all
         select '//ABC/DEF/GHI/xyz/' from dual union all
         select '//ABC/DEF/GHI/xyz/xyz/xyz/' from dual union all
         select '//ABC/DEF/GHI' from dual union all
         select '//ABC/DEF/GHI/' from dual
    )
    select str,
         regexp_replace(str,'(xyz([/\])*)+$','\1') new_str
    from  sample_table;
    
    STR                      NEW_STR
    ------------------------------ ------------------------------
    \\ABC\DEF\GHI\xyz\xyz\xyz\xyz  \\ABC\DEF\GHI\xyz
    \\ABC\DEF\GHI\xyz\            \\ABC\DEF\GHI\xyz\
    \\ABC\DEF\GHI\xyz\xyz\xyz\     \\ABC\DEF\GHI\xyz\
    \\ABC\DEF\GHI                 \\ABC\DEF\GHI
    \\ABC\DEF\GHI\                 \\ABC\DEF\GHI\
    //ABC/DEF/GHI/xyz/xyz/xyz/xyz  //ABC/DEF/GHI/xyz
    //ABC/DEF/GHI/xyz/            //ABC/DEF/GHI/xyz/
    //ABC/DEF/GHI/xyz/xyz/xyz/     //ABC/DEF/GHI/xyz/
    //ABC/DEF/GHI                 //ABC/DEF/GHI
    //ABC/DEF/GHI/                 //ABC/DEF/GHI/
    

    Kind regards.

  • I need help unlocking my windows 7 welcome screen, my brother did something and I can't log my computer. My name shows and is LOCKED saids and my password does not work

    I need help unlocking my windows7 someone has something of everything lock my computer I donot the password of my computer, please help me

    Restart the machine should solve the problem.

  • Need HELP to get this shadow effect

    Hi all

    I need your advice. Sorry I don't know the name of this effect below therefore the scene I need help

    A man holds a flashlight illuminating a girl in the front (she is a bit away from him in an open field), now the shadow of another person walks between the torch and the girl. The shadow is being cast from left to the right end of the frame, falling on the girl, too, as it moves.

    How to achieve this effect in the aftermath.

    It may or may not be a question of amateur, but any help would be so useful.

    Please notify

    It is now much clearer. you need advice VFX before your shoot. You must have a shadow without the man, be there. I think you can go 2-way with this: shoot twice the place or go to the green screen approach. each with its own complexity and the advantages and disadvantages. I will describe the basic principles:

    Approach to location

    If you want to try to do on-site, you can:

    1. turn your scene with the man and shadow

    2. pull on the same stage without human and shadow

    3 mask man with the rotoscoping and tracking

    This might work if you have no movement in your scene. or if you have motion control of drilling that will exactly twice the same movement.

    The green screen approach

    your question - if you can touch a person out and make him a shadow on the floor - YES. It's the way I'm going to try to do - it's called a Shadow Catcher - a layer that only accepts your shadow. This might work with or without movement of the camera.

    Let's say you have this guy on green screen

    and you want to just its shadow on the background against

    Here are the steps:

    1 make the guy (layer locked) 3D and add a corresponding upstairs floor * in the actual shooting.

    floor - add you a solid, it make 3D, add the effect of grid and position it accordingly with a camera of 2 knot like that of setting

    2. Add a layer of light points and set the shadow, set the images captured in the shade and the soil layer to accept shadow - only and adjust the light

    Now you have this:

    3. check that everything is OK, now define the images captured in shadow - only

    Now you have just the shadow. You can adjust it to your taste with the darkness of the shadow and the diffusion in the properties of light spots

Maybe you are looking for