delete the consecutive occurrence of string

version: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

Hi I want to do, remove the consecutive occurrence of string

Example I/P: 'POWELL POWELL BRIAN K AND BONNIE POWELL JARRELL JARRELL'
to O/P : 'POWELL BRIAN K AND BONNIE POWELL JARRELL'
I tried the code below works fine, but I wanted to do this by using the Regexp or any other method better
WITH T
       AS (    SELECT   LEVEL RN,
                        REGEXP_SUBSTR (
                           'POWELL POWELL BRIAN K AND BONNIE POWELL JARRELL JARRELL',
                           '[^ ]+',
                           1,
                           LEVEL
                        )
                           NAME
                 FROM   DUAL
           CONNECT BY   LEVEL <=
                           LENGTH(REGEXP_REPLACE (
                                     'POWELL POWELL BRIAN K AND BONNIE POWELL JARRELL JARRELL',
                                     '[^[:space:][:punct:]]*'
                                  ))
                           + 1)
SELECT   LISTAGG (NAME, ' ') WITHIN GROUP (ORDER BY Rn) AS name
  FROM   (SELECT   RN, NAME, LEAD (NAME, 1, 0) OVER (ORDER BY RN) Lead_name
            FROM   T)
 WHERE   name != lead_name;
 

Hello

1006112 wrote:
Hello
The solution does not work for this channel.

SELECT REGEXP_REPLACE ('ZHOU JIANCHUAN AND ESTABROOK- ZHOU DESIREE ','([^ ]+)( \1)+', '\1') Word1,
regexp_replace('ZHOU JIANCHUAN AND ESTABROOK- ZHOU DESIREE', '(\w+)(\W+\1)+', '\1')Word1,
regexp_replace('ZHOU JIANCHUAN AND ESTABROOK- ZHOU DESIREE', '(\w+\W+)\1+', '\1')Word3
from dual ;

SELECT REGEXP_REPLACE ('STATTELMAN J J JR AND MARGAR ','([^ ]+)( \1)+', '\1') Word1,
regexp_replace('STATTELMAN J J JR AND MARGAR', '(\w+)(\W+\1)+', '\1')Word1,
regexp_replace('STATTELMAN J J JR AND MARGAR', '(\w+\W+)\1+', '\1')Word3
from dual  

Your original solution looking better all the time! This problem is more complicated than I thought.
It is probably more effective than CONNECT BY:

SELECT    TRIM ( REGEXP_REPLACE ( REGEXP_REPLACE ( ' ' || REPLACE ( str
                                                             , ' '
                                          , '  '
                                          )
                                     || ' '
                                      , ' ([^ ]+)( +\1)+ '
                                , ' \1'
                               )
                    , ' +'
                    , ' '
                     )
            )     AS no_consecutive_dups
FROM      table_x
ORDER BY  str
;

I tested it using this table:

CREATE TABLE  table_x
(   str     VARCHAR2 (80)
);

INSERT INTO  table_x (str) VALUES ('POWELL    POWELL BRIAN K AND BONNIE POWELL JARRELL JARRELL');
INSERT INTO  table_x (str) VALUES ('ZHOU JIANCHUAN AND ESTABROOK- ZHOU DESIREE ');
INSERT INTO  table_x (str) VALUES ('STATTELMAN J J JR AND MARGAR');
INSERT INTO  table_x (str) VALUES ('DO DO SOL SOL LA LA SOL');

Output:

NO_CONSECUTIVE_DUPS
--------------------------------------------------------------------------------
DO SOL LA SOL
POWELL BRIAN K AND BONNIE POWELL JARRELL
STATTELMAN J JR AND MARGAR
ZHOU JIANCHUAN AND ESTABROOK- ZHOU DESIREE

It compresses the spaces; in other words, the original str can contain multiple consecutive spaces or spaces main and/or end, but the output will not.
Here's how it works:
The REGEXP_REPLACE at the heart of this solution search a sequence that begins and ends with a space. otherwise, he'll be fooled by things like "J J JR", where the "J" in "JR" could be confused with a 3rd 'J '. However, this means that a single space between two recurring motifs in 'DO DO GROUND GROUND' can only mark the end of "DOING" pattern or the Spiderbeam of the 'GROUND FLOOR' trend, but not both. The above query that bypasses by replacing all the spaces with 2 spaces, so space may mark the end of 'DOING' and the other may mark the beginning of "GROUND FLOOR".

Tags: Database

Similar Questions

  • How to remove or delete the line in a string indicator?

    I have a string indicator that receives data continuously. If the number of rows in the indicator becomes 100 then receives a new line after the very 1st line 100 line will be removed and so forth... in simple terms, I need to keep only the last/final 100 lines received in the indicator. How can I do this? Kindly help me.

    Hello

    Please find the attached snapshot.

    Hope this helps

    Concerning

    David

  • To delete the characters only at the beginning of a string using regexp_replace

    I want to be able to delete the characters in a string only until the first numeric value.  If it takes place after the digital, I want to keep them.

    "for example"AB1234' becomes '1234', 'AB1234C' becomes ' 1234 C.

    It might be also spaces and other types of characters at the beginning.  I tried this:

    Select

    regexp_replace ('ABC1234', ' [^ [: digit:]]').

    regexp_replace ('AB 1234',' [^ [: digit:]]').

    regexp_replace ('AB 01234',' [^ [: digit:]]').

    regexp_replace ('AB1234C', ' [^ [: digit:]]').

    regexp_replace ('^ 1234', ' [^ [: digit:]]').

    regexp_replace ('* #1234Z ',' [^ [: digit:]]')

    OF THE DOUBLE

    For all except "AB 01234' returned '1234' so it retains the digital.    For "AB 01234' it returns correctly '01234'

    The bad are those with a character after digital, for example "AB1234C".

    I know it I'm missing something here, can someone please help with this?

    Thank you

    SQL> with t
      2  as
      3  (
      4  select 'ABC1234' str from dual
      5  union all
      6  select 'AB 1234' str from dual
      7  union all
      8  select 'AB 01234' str from dual
      9  union all
     10  select 'AB1234C' str from dual
     11  union all
     12  select '^1234' str from dual
     13  union all
     14  select '*#1234Z' str from dual
     15  )
     16  select str
     17       , regexp_replace(str, '^[^[:digit:]]+') str_new
     18    from t;
    
    STR      STR_NEW
    -------- --------
    ABC1234  1234
    AB 1234  1234
    AB 01234 01234
    AB1234C  1234C
    ^1234    1234
    *#1234Z  1234Z
    
    6 rows selected.
    
  • Replace the last occurrence of a word in a string

    Hello

    I need to replace the last occurrence of a word in the string. Example of form:

    "I like fruits and vegetables as" need to replace the last occurrence of 'like' that is just before the vegetables and not 'as' before the fruit.

    Something like that!

    SELECT
        REGEXP_REPLACE('I like fruits and also like vegetables','like','hate',1,2) data_col
    FROM dual;
    
  • find the first occurrence of a digital data in a string

    Hello

    Can you please suggest me in this.

    I have a set of data, as follows...

    'LOMBORD 123'.
    'LOMBORDD '.
    'LOMBORDD45 '.

    Here how I ffind the first occurrence of the applied digital of each string, it can be a character space as 'LOMBORD 123'.

    My version of the database is 9i I can't use the regular expression.

    Thanks in advance

    Hello

    You can try:

    MHO%xe> with t as (
      2  select 'LOMBORD 123' col from dual union all
      3  select 'LOMBORDD'  from dual union all
      4  select 'LOMBORDD45'  from dual
      5  )
      6  select col
      7  ,      substr(col, instr(translate(col, '0123456789', '0000000000'), '0', 1, 1), 1 ) the_number
      8  ,      instr(translate(col, '0123456789', '0000000000'), '0', 1, 1) the_position
      9  from t
     10  where  instr(translate(col, '0123456789', '0000000000'), '0', 1, 1) > 0
     11  /
    
    COL         THE_ THE_POSITION
    ----------- ---- ------------
    LOMBORD 123 1               9
    LOMBORDD45  4               9
    
  • Cannot delete the HP Photosmart C3180 and port DOT4USB drivers

    I deleted the icon of the printer and the bestI software possible.  but I still have the DOT4USB port, but no printer icon. Ineed to remove the portand drivers. I have now an a909g hp 8500, and the new tests diagnostic shows the HP Photosmart C3180 as one of the printers on a USB port. This is not true.

    I'm a software developer, and computer repair guy and I took a class years on writing ActiveX/OLE controls, so I don't mind editing the registry and delete the files.  I need steps for pub to remove the vestigesof the c3180.  This software is a pain in the neck. easiest way to uninstallis to reinstall windows from scratch, I know, but I have a lot of valuable files.

    I don't want to miss all the pieces. the drivers are not my skills more.

    I got it by using a regedit file that looked like below.

    someone else will be different because the material of the port will be different, so you should not use this exact one.

    I suggest you rather that do [windows [logo-key indicator] r regedit [Enter]

    Search for the following text (not nessarily just a string):

    Find "HP Photosmart C31" partial text and delete the entries that you find

    Search text "DOT4USB" and delete the entries you find, but make sure that you do not delete the keys to category of port

    You can search "DOT4" and carefully remove the subentries that apply only to the C3100 series.  You probably already have these above.

    reset.  You must, because these drivers are still loaded and these inscriptions will be back unless you restart now that you have deleted entries.

    You can alsodocument them to change, copy the name of the key, then paste into notepad ++ and save it as a .reg with Windows Registry Editor Version 5.00 header file

    each key listed must be separated by ablank line and begin by [- and ends by]

    -hp3100remove.reg-

    Windows Registry Editor Version 5.00

    [- HKEY_CURRENT_USER\Software\Hewlett - Packard\DEMFileData\HP Photosmart C3100 series]

    [- HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett - Packard\HPDJ Printing System Config\HP Photosmart C3100 series]

    [- HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett - Packard\HPZ\Glue\HP Photosmart C3100 series]

    [- HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett - Packard\HPZ\Glue\HP Photosmart C4100 series]

    [- HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett - Packard\HPZ\Glue\HP Photosmart C5100 series]

    [- HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett - Packard\HPZ\Glue\HP Photosmart C6100 series]

    [- HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett - Packard\HPZ\Glue\HP Photosmart C7100 series]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {36FC9E60-C465-11CF-8056-444553540000} \0015]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {48721B56-6795-11D2-B1A8-0080C72E74A2} \0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {48721B56-6795-11D2-B1A8-0080C72E74A2} \0000\Functions\PRINT_HPZ]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {49CE6AC8-6F86-11D2-B1E5-0080C72E74A2} \0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {49CE6AC8-6F86-11D2-B1E5-0080C72E74A2} \0001]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F} \0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F} \0000\DeviceData]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\ {28d78fad-5a12-11d1-ae5b-0000f803a8c2}]

    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#DOT4#Vid_03f0&Pid_5611&MI_02&DOT4&PRINT_HPZ#9&298a8a4c&0&0#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\#\Device Parameters]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Nls\MUILanguages\RCV2\dot4usb.sys]

    [- Series of Photosmart C3100 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Environments\Windows NT x86\Drivers\Version-3\HP]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\DOT4PRT\Vid_03f0 & Pid_5611 & MI_02 & DOT4 & PRINT_HPZ]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\DOT4USB\Vid_03f0 & Pid_5611 & MI_02 & DOT4]

    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\DOT4USB\Vid_03f0 & Pid_5611 & MI_02 & DOT4\8 & 39e652e5 & 0 & 1]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\DOT4USB\Vid_03f0 & Pid_5611 & MI_02 & DOT4\8 & 39e652e5 & 0 & 1\Device Parameters\Functions\PRINT_HPZ]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\DOT4\Vid_03f0 & Pid_5611 & MI_02 & DOT4 & PRINT_HPZ]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\DOT4\Vid_03f0 & Pid_5611 & MI_02 & DOT4 & PRINT_HPZ\9 & 298a8a4c & 0 & 0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\DOT4\Vid_03f0 & Pid_5611 & MI_02 & DOT4 & PRINT_HPZ\9 & 320ed38 & 0 & 0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_HP&Prod_Photosmart_C3180&Rev_1.00\8&1932c8&0&CN6ABC413004KV&0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_HP&Prod_Photosmart_C3180&Rev_1.00\8&e567de1&0&CN6ABC413004KV&0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_03f0 & Pid_5611 & MI_00\7 & 1ade038 & 2 & 0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_03f0 & Pid_5611 & MI_02\7 & 1ade038 & 2 & 0002]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\HP Photosmart C3100 series]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\Current\System\CurrentControlSet\Control\Print\Printers\HP Photosmart C3100 series]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\ {36FC9E60-C465-11CF-8056-444553540000} \0015]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\ {48721B56-6795-11D2-B1A8-0080C72E74A2} \0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\ {48721B56-6795-11D2-B1A8-0080C72E74A2} \0000\Functions\PRINT_HPZ]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\ {49CE6AC8-6F86-11D2-B1E5-0080C72E74A2} \0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F} \0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F} \0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F} \0000\DeviceData]

    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#DOT4#Vid_03f0&Pid_5611&MI_02&DOT4&PRINT_HPZ#9&298a8a4c&0&0#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\#\Device Parameters]

    [- Series of Photosmart C3100 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Print\Environments\Windows NT x86\Drivers\Version-3\HP]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\DOT4\Vid_03f0 & Pid_5611 & MI_02 & DOT4 & PRINT_HPZ\9 & 298a8a4c & 0 & 0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\DOT4\Vid_03f0 & Pid_5611 & MI_02 & DOT4 & PRINT_HPZ\9 & 320ed38 & 0 & 0]

    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\DOT4USB\Vid_03f0 & Pid_5611 & MI_02 & DOT4\8 & 39e652e5 & 0 & 1]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\DOT4USB\Vid_03f0 & Pid_5611 & MI_02 & DOT4\8 & 39e652e5 & 0 & 1\Device Parameters\Functions\PRINT_HPZ]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\USB\Vid_03f0 & Pid_5611 & MI_00\7 & 1ade038 & 2 & 0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\USB\Vid_03f0 & Pid_5611 & MI_00\7 & 1ade038 & 2 & 0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\USB\Vid_03f0 & Pid_5611 & MI_02\7 & 1ade038 & 2 & 0002]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\USBSTOR\Disk&Ven_HP&Prod_Photosmart_C3180&Rev_1.00\8&1932c8&0&CN6ABC413004KV&0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\USBSTOR\Disk&Ven_HP&Prod_Photosmart_C3180&Rev_1.00\8&e567de1&0&CN6ABC413004KV&0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\HP Photosmart C3100 series]

    [- \0015 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {36FC9E60-C465-11CF-8056-444553540000}]

    [- \0000 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {48721B56-6795-11D2-B1A8-0080C72E74A2}]

    [- \0000\Functions\PRINT_HPZ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {48721B56-6795-11D2-B1A8-0080C72E74A2}]

    [- \0000 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {49CE6AC8-6F86-11D2-B1E5-0080C72E74A2}]

    [- \0000 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F}]

    [- \0000 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F}]

    [- \0000\DeviceData HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F}]

    [- \0000\DeviceData HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F}]

    [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#DOT4#Vid_03f0&Pid_5611&MI_02&DOT4&PRINT_HPZ#9&298a8a4c&0&0#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\#\Device Parameters]

    [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#DOT4#Vid_03f0&Pid_5611&MI_02&DOT4&PRINT_HPZ#9&298a8a4c&0&0#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\#\Device Parameters]

    [- Series of Photosmart C3100 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\HP]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DOT4\Vid_03f0 & Pid_5611 & MI_02 & DOT4 & PRINT_HPZ\9 & 298a8a4c & 0 & 0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DOT4\Vid_03f0 & Pid_5611 & MI_02 & DOT4 & PRINT_HPZ\9 & 320ed38 & 0 & 0]

    [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DOT4USB\Vid_03f0 & Pid_5611 & MI_02 & DOT4\8 & 39e652e5 & 0 & 1]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DOT4USB\Vid_03f0 & Pid_5611 & MI_02 & DOT4\8 & 39e652e5 & 0 & 1\Device Parameters\Functions\PRINT_HPZ]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DOT4USB\Vid_03f0 & Pid_5611 & MI_02 & DOT4\8 & 39e652e5 & 0 & 1\Device Parameters\Functions\PRINT_HPZ]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DOT4USB\Vid_03f0 & Pid_5611 & MI_02 & DOT4\8 & 39e652e5 & 0 & 1\Device Parameters\Functions\PRINT_HPZ]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_03f0 & Pid_5611 & MI_00\7 & 1ade038 & 2 & 0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_03f0 & Pid_5611 & MI_00\7 & 1ade038 & 2 & 0000]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_03f0 & Pid_5611 & MI_02\7 & 1ade038 & 2 & 0002]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\Disk&Ven_HP&Prod_Photosmart_C3180&Rev_1.00\8&1932c8&0&CN6ABC413004KV&0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\Disk&Ven_HP&Prod_Photosmart_C3180&Rev_1.00\8&e567de1&0&CN6ABC413004KV&0]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\HP Photosmart C3100 series]

    [- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Control\Print\Printers\HP Photosmart C3100 series]

  • Mystery Microsoft Files-Do I have need of all these files or can I delete the batch?

    I have 3 files on my C drive, all named as a string to a number, for example 6a34b3f7ad5039dc26e3c4. In these cases, there is a 25 folders numbered 1025, 1028, 1030 1031 etc over a folder 'graphics' and 'customer '. then there are all the other files inclusing .bmp for microsoft.NET and set up etc. In the numbered records are 3 files, Eula.rtf (clearly Microsoft but all in Japanese), LocalizedData.xml and SetupResources.dll.

    I need all these files or do I have to delete the batch? I'm guessing that they are something to do with the windows updates...

    Thank you

    These are usually leftovers from Windows Update and can be deleted safely after you restart your computer to make sure that they are not in use and/or staged for an update that will continue after a reboot.

    "2toerags" wrote in the new message: * e-mail address is removed from the privacy... *

    * I have 3 files on my C drive, all named as a string to a number, for example 6a34b3f7ad5039dc26e3c4. In these cases, there is a 25 folders numbered 1025, 1028, 1030 1031 etc over a folder 'graphics' and 'customer '. then there are all the other files inclusing .bmp for microsoft.NET and set up etc. In the numbered records are 3 files, Eula.rtf (clearly Microsoft but all in Japanese), LocalizedData.xml and SetupResources.dll. *

    I need all these files or do I have to delete the batch? I'm guessing that they are something to do with the windows updates...

    Thank you

  • Topics by opening the first occurrence in the table of contents

    Background: I created HTML5 Responsive help using HR 2015 for a web application. I organized the Hep role, then pages with these roles, users can access, and then by the tasks users can perform on this page. In many cases, a subject is listed under multiple roles and reuse and efficiency, I just dragged the same theme in the list of the topic in the table of contents as appropriate.

    I also used the text conditionalized on table of contents by role level. Using the example below, I have conditions for physician, nurse, and Patient, but I don't think that this is part of the issue well. Conditionalized roles were created for filtering purposes.

    Question: I have the overview topics that include hyperlinks to headings in red in the example below for each role. When a user clicks the hyperlink in this topic of presentation, he brings them to the FIRST occurrence of this topic in the table of contents, not the link that is associated with their role. When a user with the role of the Patient is in the topic view of their role and click the hyperlink 'Research for patients', help opens on this subject, but the "Searching for patients" in the topic role of physician in the table of contents on the left is highlighted.  Not a show-stopper, but it is confusing for users.

    Also, we had originally planned to use the filter feature to filter role help topics. When I filter to view only a specific role (nurse) and do the steps above, by clicking on the Preview 'Search for patients' hyperlink opens but there is no highlighting in the table of contents because this first occurrence is hidden in all the subjects physician.

    Note: This problem does not occur when I generate the content as WebHelp.

    What I want to do: When the nurse click on the hyperlink for 'Research for patients' of their overview topic, researching topic of patients is open and the search for patients is highlighted in the table of contents under the nurse, not the first occurrence (doctor).

    Questions: Is this a bug or is it repairable? And is it possible to fix it without creating the specific role of topics such as finding doctors for Patients, nursing research for Patients and so forth? I tried to delete the table of contents and start again, but the problem persists.

    Here is an example:

    Doctor

    Patient portal page

    Overview (contains links to sections below - view patient demograhic data, looking for patients, to renew orders)

    Display of the demographics of the patients

    Looking for patients

    Renewal of prescriptions

    Nurse

    Patient portal page

    Overview (contains links to sections below)

    Display of the demographics of the patients

    Looking for patients

    Display of orders

    Patient

    Patient portal page

    Overview (contains links to sections below)

    Update your demographic data

    Display of your prescrpitions

    My opinion would be that this is the expected behavior. My theory is that there is no information within the syntax of hyperlinks. A hypertext link is encoded such that when you click on it, you are taken to the landing page, as if sending the message "find the page named and post it by the specified parameters. What is happening is that the hyperlink goes to the first instance of the HTML page in your table of contents (.hhc file). There is no intelligence, he doesn't "know" that you are in the doctor or the nurse section - section he knows only that the page specified in the table of contents is listed in the file and thus, it only takes you there. The syntax of hyperlinks don't "know" where you are in the help system.

    I just also wanted to report the fault of strike in the Patient section, look a your orders of your example, assuming that you have copied and pasted into this thread.

  • Oracle sql for data after the first occurrence of the hyphen

    Hi, I need oracle sql get data after the first occurrence of the hyphen.

    source of the string:
    ABCD - efgh

    I just want everything after the ' - '.

    someone help me please...

    Edited by: 1001076 on 28 may 2013 18:42

    Handle: 1001076
    Status level: Beginner
    Join date: April 18, 2013
    Messages total: 12
    Total Questions: 4 (3 pending)

    I offer you my condolences; Since you rarely get your questions answered here.

  • Deleting the same files of many virtual machines remotely

    Hi all

    I tried to delete the same file several virtual machines remotely using the following script PowerCLI:

    $a = Get - VM | %{

    foreach ($nic as $_.) Guest.Nics) {}
    Write-output $nic. IPAddress
    }
    }
    foreach ($i in $a)
    {$b = get-WmiOBJECT-query "SELECT * from CIM_DataFile where Name='C:\\test\\deleteme.exe'"-computername $i}
    $b.delete)

    }

    It works perfectly when I run the script on the host virtual machines while I am running the script PowerCLI. When I Connect-viserver to another host however and try to run the script, I get the dreaded "RPC server is unavailable error (HRESULT: 0x800706BA)" for Get-WmiObject.  Virtual machines don't have Windows Firewall and have all TCP/IP, RPC and WMI services started, so who could eliminate any possibility.

    I am also able to run other scripts that use the Get-wmiobject across all virtual machines such as scripts to change the DNS or Netbios name across many machines on different hosts.

    Any comments would be greatly appreciated and please feel free to comment if you know maybe other ways which can delete files on multiple virtual machines in any other way.  Installation PowerCLI to run the script locally on each host would be a laborious process to do.

    Thank you very much!

    Best regards

    To solve the problem with the quotes, you can use double quotes inside the string. Like this:

    «del "«c:\documents and settings\text.exe»»»

    Or you can use for the string single quotes and double quotes inside:

    "del"c:\documents and settings\text.exe"

  • to view the consecutive words in a table on a press of a key. Event listeners does not.

    I need to display a series of words consecutively on a black background. A new Word presented whenever you press the Enter key (it is necessary that it is the same key IE each time the Enter key). The words are arranged in a table. I created a function for each button press and a listener. Also, as the previous word is replaced by the following, I have a removeChild() to get rid of the the last word.

    I have a set removeEventListener in place too, to avoid problems with listeners. To this, I've been long without success. It must be an earpiece problem (IE I do not have the doors correctly listeners?) or a display problem. It always shows only one. Please find below the code for the display of two of the words in the table called cvcwords. The main problem is that the words are not displayed one after the other (actually not at all, except for the first) when you press the Enter key. Very much as a powerpoint presentation, that's the idea anyway. I have just a sample of the code below. any help appreciated.

    var cvcwords: Table = ["bad", "mod", "hud", "mit", "sat", "fog", "puc",];

    this. stage.addEventListener (KeyboardEvent. ) KEY_DOWN, modKeyDown);

    Function modKeyDown (e: KeyboardEvent): void {}

    if (e.keyCode is keyboard. ( ENTER) {

    removeChild (myText);               / / to remove back Word of screen

    myText.text = cvcwords [1];        //to View element un of le table

    addChild (myText);

    } else If (e.keyCode == keyboard. ) SPACE) { //this is distinct from the other for option }

    myText.text = "try again";

    addChild (myText);

    this. stage.removeEventListener (KeyboardEvent. ) KEY_DOWN, modKeyDown);

    }

    }

    this. stage.addEventListener (KeyboardEvent. ) KEY_DOWN, hudKeyDown);

    Function hudKeyDown (e: KeyboardEvent): void {}

    if (e.keyCode is keyboard. ( ENTER) {

    removeChild (myText);  to delete the previous word of the screen

    myText.text = cvcwords [2];

    addChild (myText);

    } else If (e.keyCode == keyboard. ) SPACE) {}

    myText.text = "start";

    addChild (myText);

    this. stage.removeEventListener (KeyboardEvent. ) KEY_DOWN, hudKeyDown);

    }

    }


    From what I see of your code, the following is everything you need...

    var cvcwords: Array = ["bad", "mod", "hud", "mit", "sit", "fog", "puc",];
    var count: int = 0;

    stage.addEventListener (KeyboardEvent.KEY_DOWN, modKeyDown);

    function modKeyDown(e: KeyboardEvent): void {}
    If (e.keyCode == Keyboard.ENTER) {}
    myText.text = cvcwords [counter];

    counter ++;
    } Else if (e.keyCode == Keyboard.SPACE) {}

    myText.text = "try" again
    addChild (myText);
    stage.removeEventListener (KeyboardEvent.KEY_DOWN, modKeyDown);
    }
    }

    When you test this in Flash, in the drive to be sure, you will need to select the option of Devil keyboard shortcuts located under the control option in the top toolbar

    If you really want to tell them to try again, probably not wanting to remove the event listener

  • Create, delete the folder in the application server

    Hello

    I'm new in Oracle forms. My version is forms [32 bit] Version 9.0.2.12.2 (Production), and AS it is WINNING.
    I need to create a folder in the AS and after that I want to delete this folder.

    1. is there a way to create a folder (directory) in the ACE? I have to check if this folder is present.
    If absent, I have to create it.
    If present, then rename it and create another directory with the original name.

    2. is it possible to delete the record in SA? If possible, what is the way?

    3. I confused what are the differences between TEXT_IO & UTL_FILE. If any times that use functions/packages?

    Can someone help me please? Any response is greatly appreciated. Thanks in advance.

    Thank you

    Fabien

    try adding a space after the run.bat. It is a common mistake when trying dynamic query in a string, so always print your final string on the screen or elsewhere to see if the syntax is correct.

    François

  • Cannot delete the row

    Hello

    I am trying to implement page 664 of the dev guide which is delete row from the table.
    My page displays the data for a row.

    I added a submitbutton delete my page.

    Here is my code:

    IDI int = Integer.parseInt (id.toString ());
    XxVOImpl vo = getXxVO1();
    Line XxVORowImpl = null;
    int fetchedRowCount = vo.getFetchedRowCount ();
    Boolean rowFound = false;
    RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");

    If (fetchedRowCount > 0)
    {
    deleteIter.setRangeStart (0);
    deleteIter.setRangeSize (fetchedRowCount);
    for (int i = 0; i < fetchedRowCount; i ++)
    {
    line = (XxVORowImpl) deleteIter.getRowAtRangeIndex (i);
    oracle.jbo.domain.Number primaryKey = row.getId ();
    If (primaryKey.compareTo (idi) == 0)
    {
    Row.Remove ();
    rowFound = true;
    getTransaction () .commit ();
    break;
    }
    }
    }
    deleteIter.closeRowSetIterator ();


    My problem is that fetchedRowCount is 0. But there are about 100 rows in my table.
    And my VO is just a simple select * from myTable.

    So I do not understand why fetchedRowCount is still 0?

    Help thank you
    Dan

    Dan

    You don't create a page of dialogue Yes No button when you click on the delete icon. For dialog page, please see the dev guide or my refer below code snippet that you may need to change little

       else if ("delete".equals(pageContext.getParameter(EVENT_PARAM)))
    {
    // The user has clicked a "Delete" icon so we want to display a "Warning"
    // dialog asking if she really wants to delete the employee. Note that we
    // configure the dialog so that pressing the "Yes" button submits to
    // this page so we can handle the action in this processFormRequest( ) method.
    String employeeNumber = pageContext.getParameter("empNum");
    
    String employeeName = pageContext.getParameter("empName");
    MessageToken[] tokens = { new MessageToken("EMP_NAME", employeeName)};
    OAException mainMessage = new OAException("AK",
    "FWK_TBX_T_EMP_DELETE_WARN", tokens);
    // Note that even though we're going to make our Yes/No buttons submit a
    // form, we still need some non-null value in the constructor's Yes/No
    // URL parameters for the buttons to render, so we just pass empty
    // Strings for this.
    OADialogPage dialogPage = new OADialogPage(OAException.WARNING,
    mainMessage, null, "", "");
    // Always use Message Dictionary for any Strings you want to display.
    String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
    String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
    // We set this value so the code that handles this button press is
    // descriptive.
    dialogPage.setOkButtonItemName("DeleteYesButton");
    // The following configures the Yes/No buttons to be submit buttons,
    // and makes sure that we handle the form submit in the originating
    // page (the "Employee" summary) so we can handle the "Yes"
    // button selection in this controller.
    dialogPage.setOkButtonToPost(true);
    dialogPage.setNoButtonToPost(true);
    dialogPage.setPostToCallingPage(true);
    // Now set our Yes/No labels instead of the default OK/Cancel.
    dialogPage.setOkButtonLabel(yes);
    dialogPage.setNoButtonLabel(no);
    // We need to keep hold of the employeeNumber, and the OADialogPage gives us a
    // convenient means of doing this. Note that the use of the Hashtable is
    // really more appropriate for passing multiple parameters, but we've used
    // it here for illustration purposes. See the OADialogPage javadoc for an
    // alternative when dealing with a single parameter.
    java.util.Hashtable formParams = new java.util.Hashtable(1);
    formParams.put("empNum", employeeNumber);
    formParams.put("empName", employeeName);
    dialogPage.setFormParameters(formParams);
    pageContext.redirectToDialogPage(dialogPage);
    }
    else if (pageContext.getParameter("DeleteYesButton") != null)
    {
    // User has confirmed that she wants to delete this employee.
    // Invoke a method on the AM to set the current row in the VO and
    // call remove() on this row.
    String employeeNumber = pageContext.getParameter("empNum");
    String employeeName = pageContext.getParameter("empName");
    Serializable[] parameters = { employeeNumber };
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("deleteEmployee", parameters);
    // Now, redisplay the page with a confirmation message at the top. Note
    // that the deleteEmployee() method in the AM commits, and our code
    // won't get this far if any exceptions are thrown.
    MessageToken[] tokens = { new MessageToken("EMP_NAME", employeeName) };
    OAException message = new OAException("AK",
    "FWK_TBX_T_EMP_DELETE_CONFIRM", tokens, OAException.CONFIRMATION, null);
    pageContext.putDialogMessage(message);
    }
    

    Thank you
    AJ

  • How to get the substring of this string

    Hi friends,

    "ERF/11/414/KWT/IRC762.

    in this I need the string after C...

    I have to select the channel and finds the first occurrence of C in the last string and get the number after C every time
    what the chain can be

    I always check the first occurrence of C in the last... and retrun the number after the C

    How to make

    pls let me know

    He should give me the chain until the IRC avoiding 762

    This?

    SQL> select regexp_substr ('ERFC/11/414/KWT/IRC762', '.*C') num from dual
    /
    NUM
    ----------------------------
    ERFC/11/414/KWT/IRC     
    
  • Delete the work of nto lines button code.

    Hello
    I developed a table in a custom page and I added the deletion icon to that one. If I click on delete, records are deleting application but don't not removing database table... I used following code to delete the records... Pls suggest.


    Controller of

    Boolean isAuthorisedDelete = pageContext.getParameter
    ("DeleteAuthorisedToYes")! = null |
    pageContext.getParameter ("DeleteAuthorisedToNo")! = null;



    If (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)
    . Equals ("deleteauthorisedrow"))
    {
    System.out.println ("in XXIosCO.processFormRequest ()," +)
    "deleteauthorisedrow event fired");
    deleteauthorisedrow (PageContext, AM);
    }

    If (pageContext.getParameter ("DeleteAuthorisedToYes")! = null) {}
    String rowRef = pageContext.getParameter ("rowRef");
    String rowRef = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    System.out.println ("In XXWorkOrderAMImpl.delete1" +)
    (".rowRef:" + rowRef);
    am.invokeMethod ("deleteauthorisedrow",
    New serializable [] {rowRef});
    }


    Private Sub deleteauthorisedrow (pageContext, OAPageContext,
    OAApplicationModule'm) {}
    String rowRef = pageContext.getParameter (EVENT_SOURCE_ROW_REFERENCE);
    System.out.println ("In XXWorkOrderAMImpl.delete2" +)
    (".rowRef:" + rowRef);
    String default = "";
    Object addNewRecord = am.invokeMethod
    ("getAuthorisedRecordStatusByRowRef", new [Serializable] {rowRef});

    If (addNewRecord! = null & & addNewRecord.toString (.equals("Y"))) {}
    Default = "do you want to delete the record?
    } else {}
    Default = "you sure you want to delete the record?
    }

    OAException = message
    New OAException (default, OAException.WARNING);
    OADialogPage = dialog
    new OADialogPage (OAException.WARNING, message, null, "", "");

    dialog.setOkButtonItemName ("DeleteAuthorisedToYes");
    dialog.setNoButtonItemName ("DeleteAuthorisedToNo");
    dialog.setOkButtonToPost (true);
    dialog.setNoButtonToPost (true);
    dialog.setPostToCallingPage (true);
    dialog.setOkButtonLabel ("Yes");
    dialog.setNoButtonLabel ("No");
    Hashtable deleteParam = new Hashtable (1);

    deleteParam.put ("rowRef", rowRef);
    deleteParam.put ("WipEntityId", pageContext.getParameter ("WipEntityId"));

    dialog.setFormParameters (deleteParam);

    pageContext.redirectToDialogPage (dialog);

    }


    AM

    public void deleteauthorisedrow (String rowRef)
    {
    XXIosAuthorisedVORowImpl = rowToDelete
    (XXIosAuthorisedVORowImpl) findRowByRef (rowRef);
    If (rowToDelete! = null)
    {
    System.out.println ("In XXWorkOrderAMImpl.deleteauthorisedrow ()" +)
    (".rowRef:" + rowRef);
    IsAddRowRecord = Boolean
    rowToDelete.getaddNewRecord ()! = null & &
    rowToDelete.getaddNewRecord (.equals("Y"));
    rowToDelete.remove ();
    if(!isAddRowRecord)
    {
    getOADBTransaction () .commit ();
    }
    }
    }

    public String getAuthorisedRecordStatusByRowRef (String rowRef)
    {
    String recordStatus = null;
    XXIosAuthorisedVORowImpl line =.
    (XXIosAuthorisedVORowImpl) findRowByRef (rowRef);
    If (line! = null)
    {
    recordStatus = row.getaddNewRecord ();
    }
    RecordStatus return;
    }
    Thanks in advance,
    Roxanne.

    Roxanne

    You can try the workaround instead of using rowRef, create the parameter in the settings property fire action and get this value to check what the line clicked and delete this line.

    Thank you
    -Anil
    http://oracleanil.blogspot.com

Maybe you are looking for

  • horizontaal en verticaal gaat traag scrollen met schokken, says you verhelpen?

    Green scroll. and Hor. very slow and with shocks when I'm on the internet, or is it a Windows edition.

  • Satellite M40X-29 where I can find the necessary drivers

    Dear Sirs! Please be so kind and let me know where I can find the drivers for my laptop free download.After installation of my windows XP I tried to find the drivers on your homepage to support without result. It seems that my model is obsolete.In an

  • Difficulty in the chat

    After the last update of Skype, I face to great difficulty to chat in Windows PC. If someone me the pings, then I answered and if the person responds to my message, it does not come after my message. It's to come before my message as well as his prev

  • ThinkPad T450s Review

    Introduction The ThinkPad T450s is one of the best new ultrabooks. If it is not as slim as some, it is still quite compact and easier to service than the thinner machines and screen Full HD IPS is a standout feature. This review is based on a ThinkPa

  • Selection of subchannel RE2000

    I think I want to implement different transmission on the EA3500 and the RE2000 substrings to differentiate when a device is connected to a radio or another source. In the EA3500, it's simple, but I can't find this same capability in html-based confi