REGEXP_LIKE - how to exclude certain trends

Hello
I need to find any type of "25" in a column if all the following are true:
(1) the preceding character is not '0', '1', '3', '4', '5', '6', '7', '8', '9','d ", ':";
(2) the next (at 25) character is not a number;
(3) the next (at 25) character is not a '. '. (dot)
"4) the next two characters (at 25) are not a '%'" (percentage more symbol quote)
(-5) the following characters (at 25) are not "): = ' (closing flange, any number of spaces/tabs, a colon and an equal sign).
(5) the sequence after 25 should not be "hook closing, any number of spaces/tabs, colon and equal sign.

It is easy to make the top three, but I'm stuck with the last two, because it seems I can't use more characters inside [].
{code}
REGEXP_LIKE (column, ' [^ 013456789d\:] 25 [^(\.| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9|\:|\)[:space:]*?\:\=|\%\")]')
and i even can't use 
[. .]
when i tried this
"[[REGEXP_LIKE (tegevus," [^ 013456789d\:]25[^\.0123456789 [.]] ")].]"
it told me 
ORA-12731: invalid collation class in regular expression

Any help?

Edited by: andres31 on Jun 19, 2009 4:42 PM

Edited by: andres31 on Jun 19, 2009 5:43 PM
rephrased 5)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

Hello

Reviewed documenting the approach

SELECT     id
,     txt
FROM     test_data
WHERE     REGEXP_LIKE ( REGEXP_REPLACE ( txt
                               , '25' || '('          -- followed by either of 2 things:
                                    ||           '(%")'     -- (1) percent doublequote
                             || '|'          -- or
                             ||           '('     -- (2)
                             ||           '\)'          -- right parentheses
                             ||           '[      ]*'     -- 0 or more spaces or tabs
                             ||           '\:='          -- colon equals
                             ||          ')'
                             || ')'
                         , 'X'
                         )
              , '[^013456789d\:]25[^0-9.]'
              )
;
{code}
It looks like all of the other suggestions reject 25 when it is followed by right-parentheses, regardless of what comes after that.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

Tags: Database

Similar Questions

  • How to exclude certain folders from the result of the query

    I'm writing a query to exclude some records from a query. Normally, of course, I do it with a NOT IN or use SUBTRACT. However, I can not do with these records because it is not working properly. There is a table called SHRTRCE that contains fields for PIDM, SUBJ, COURSE and TITLE, coded as follows:
    create table SHRTRCE
    (
    PIDM     NUMBER     NOT NULL
    SUBJ     VARCHAR2(10)
    COURSE     VARCHAR2(6)
    TITLE     VARCHAR2(30)
    )
    /
    INSERT INTO SHRTRCE
    (PIDM,SUBJ,COURSE,TITLE)
    VALUES
    (12345,MATH,1X0501,COLLEGE ALGEBRA)
    /
    INSERT INTO SHRTRCE
    (PIDM,SUBJ,COURSE,TITLE)
    VALUES
    (12345,ENG,2X1001,COMPOSITION II)
    /
    INSERT INTO SHRTRCE
    (PIDM,SUBJ,COURSE,TITLE)
    VALUES
    (12345,PSYC,1X0101,GENERAL PSYCH)
    /
    INSERT INTO SHRTRCE
    (PIDM,SUBJ,COURSE,TITLE)
    VALUES
    (23456,ENG,1X1001,COMPOSITION I)
    /
    INSERT INTO SHRTRCE
    (PIDM,SUBJ,COURSE,TITLE)
    VALUES
    (23456,PHY,1X3201,NON-LAB PHYSICS)
    /
    INSERT INTO SHRTRCE
    (PIDM,SUBJ,COURSE,TITLE)
    VALUES
    (34567,MATH,1X0501,COLLEGE ALGEBRA)
    /
    INSERT INTO SHRTRCE
    (PIDM,SUBJ,COURSE,TITLE)
    VALUES
    (34567,MATH,2X2010,CALCULUS I)
    /
    I want to do is pull ONLY the records for these PIDMS where there is no class with the OBJECT of MATHEMATICS. So, in this case, I want only the values for PIDM 23456. If I use NOT IN, I always get PIDMs in my list where the person did one or more courses of MATHEMATICS; only, it excludes courses, which are MATHEMATICAL, but leaves others. If I use a SUBTRACTION, producing the same results. I don't know how to proceed at this point. I'm going to cut him, but thought I'd post something because I know it is probably something easy enough, I'm simply not anywhere in my books.

    Thank you very much
    Michelle Craig
    Data Coordinator
    Kent State University

    Published by: BluShadow on January 10, 2012 14:23
    fixed {noformat}
    {noformat} tags.  the word "code" must be lower case in both tags                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Do not know what is the problem with NOT IN for you, seems ok to me...

    select *
    from shrtrce
    where pidm not in (select pidm from shrtrce where subj = 'MATH')
    
  • Conditional tags - how to exclude files from the output

    Hi all

    I am trying to exclude certain topics (books) of the generation by applying the conditional tags. It works very well and these books are excluded from the table of contents; However, section files are not excluded that the output size is exactly the same. The items I must exclude are huge video tutorials. It seems that HR changes only the TOC when applying conditional build tags.

    Any ideas how to ensure that the files of excluded topics are not in the output?

    Thank you

    Hello

    If the subjects are actually excluded or not depends on exactly where you added the conditional tags. If you haven't been tag elements of the table of contents, all that is remove entries from the table of contents.

    My suggestion is to wipe the table of Contents formatting per tag and add the tags to the subjects themselves. Then, they should be excluded. And when they are excluded, they will disappear also the table of contents.

    See you soon... Rick

  • Manual backup Parallels virtual machine - how to exclude folders?

    Can't find an answer.

    I want to exclude certain folders when you do a manual Virtual Machine backup Parallels.

    There are thousands of responses but all backups on Mr. time.

    And since I had a crash when restoring a virtual of TM machine I won't use.

    I have no problem with manual backups.

    But since my photo file is about 100 GB and I don't change anything

    often, in this case, I want to exclude from the backup of file that records everything.

    Greateful for any suspicion.

    Can you clarify, you try to back up only via Parallels

    or try you backup via Time Machine and want to exclude a folder?

    If this last, go preferences of Time Machine and choose your folders to exclude

    If you only back up Parallels see here

    http://KB.parallels.com/en/4859

    or here

    http://KB.parallels.com/en/8827

    - - - -

    Your mileage may vary.   All advice is based on my experience.   I bought a shareware/commercial software in any given notice and have no financial interest in all of the mentioned products.

  • Some of the desktop icons have expanded themselves how to reverse this trend?

    Some of the desktop icons have expanded themselves how to reverse this trend?

    The first thing to try is to right click on your desktop > view > click medium icons and see what happens. You can also try small

  • How to block certain websites?

    I would like to know how to block certain websites like MTV, because I do not want my children to watch some videos... urgent please!

    I think that you are not in the right forum with this theme because it has nothing to do with Toshiba laptops.
    Anyway, what you can do is to block all Web sites in your router configuration. Router password together and nobody can change anything so you will have full control over the content that should not be visible for your children.

  • Do you know how to copy certain tasks in the calendar and the past on different days?

    Do you know how to copy certain tasks in the calendar and the past on different days?

    This year, I even tasks to every month, so it is difficult for me to create new tasks for the same information. I can't find how to copy beyond the tasks, so if someone could help me I aprecciate it.

    Thanks in advance!

    Select, press COMMAND = C to copy it to the Clipboard; Select the date that you want a copy with the mouse, them press COMMAND\-V to paste. If you want a repetitive task, you can select the item and double-click it to open it, and then the pop up config, select repeat.

  • How to cut certain frequencies

    Hello!

    My question is, how to cut certain frequencies (sound of machine). The problem is im recording of the sounds, but have a noise in the background, who is always there, because of the machinery around the subject of the test. So I want to cut frequency of 1300-1500 Hz (in the example). How do I do that?

    I'm using labview 2010 sound & vibration toolkit. I found a few fast .vi which attenuates frequencies in example of 1000 Hz upwards or downwards, but no .vi is there that cuts between the two.

    Hello!

    You must create a bandstop filter. There are a few examples in this forum. You can also view and change this: https://decibel.ni.com/content/blogs/Simon/2010/06/16/world-cup-2010--filtering-the-annoying-vuvuzel...

    PS Sorry for the long link. Opera seems only I would like to create a link in the mail.

  • Please - need help changing the rules to exclude certain hosts/guests

    I need to find a way to exclude certain hosts and invited only a few rules, and I can't seem to understand.  Here is my example.

    I have a guest who I want to disable monitoring of the 'Memory of Virtual Machine of VMW Swapping' State.  The guest I want to exclude the rule is called "ucapmil1 (QAUCL).

    So I in the field field of application of this particular rule rule:

    "VMWVirtualMachineMemory where virtualMachine.name does not correspond to ' ucapmil1 (QAUCL)"

    I also tried

    VMWVirtualMachineMemory where monitoredHost.name! = 'ucapmil1 (QAUCL).

    Neither seems to make a difference.  Can someone point me in the right direction?  Thanks in advance.

    Try using esxServer.name

  • How to exclude the missing files or library locations that are on a network backup and restore of Windows 7 Professional drive

    How to exclude the missing files or library locations that are on a network backup and restore of Windows 7 Professional drive. To give you more information, I have photos stored on a network drive to the following address: Wirelessspace\LaCie\MyPhotoGallery\Family. This folder is a location of library under the images. Because this folder is on a network drive backup backup not file Wizard.

    In addition, the following file locations is not found because they no longer exist. So why the backup wizard continues to look for and how to remove the backup set? I guess the error code following each line means simply that records cannot be found. Is this correct?

    Backup has encountered a problem during backup of the C:\Windows\System32\config\systemprofile\Searches\Google file. Error: (the system cannot find the specified file. (0 x 80070002))
    Backup has encountered a problem during backup of the C:\Windows\System32\config\systemprofile\SyncUP file. Error: (the system cannot find the specified file. (0 x 80070002))
    Backup has encountered a problem during backup of the C:\Windows\System32\config\systemprofile\Podcasts file. Error: (the system cannot find the specified file. (0 x 80070002))

    Hello

    I suggest you to follow the steps in the article below and check if it helps.

    Error code 0 x 80070002 when you back up files in Windows 7: http://support.microsoft.com/kb/979281

    Hope this information is useful.

  • How to exclude from the SOUL of the rules if the invoice distribution amount is < 0 (i.e. the negative amount) to the existing rule

    How to exclude from the SOUL of the rules if the invoice distribution amount is < 0 (i.e. the negative amount) to the existing rule.

    Requirement: I have an obligation to send the invoice approval group approval specified when the invoice distribution account is 4567 and charge the amount of distribution > 0

    Finished configurations:

    1. Set condition: the string value to using 4567 supplier_invoice_distribution_gl_account attribute
    2. The condition set: SUPPLIER_INVOICE_DISTRIBUTION_AMOUNT is greater than or equal to 0
    3. Definition of new rule setting the terms of the 1st and 2nd stage and also group attached to this rule approval

    Note: Approval is not required is defined for invoices IN. matched in SOUL.

    Test case:

    1. Corresponding invoice with PO (PO amount is 8000)
    2. Amount of invoice header 5000
    3. Distribution account invoice 5568 as well as the amount is 8000
    4. Inserted 4567 distribution and quantity is - 3000

    Behavior of real: system sends the approval of the Bill for approval related group account 4567

    Expected behavior: invoice approval status should be 'Not necessary', since it is a corresponding purchase order invoice and 4567 account amount is < 0

    Kindly let me know how to set the rule to exclude the ve - amount distribution associated with lines

    Hello

    Then set a rule all 3 conditions:

    If attribute SUPPLIER_INVOICE_DISTRIBUTION_PO_MATCHED = No. and the SUPPLIER_INVOICE_DISTRIBUTION_AMOUNT attribute is less than the 0 attribute and supplier_invoice_distribution_account = <> then no permission.

    Concerning

    Yvette

  • How would bleep certain words?  I need to download an alarm sound?

    How would bleep certain words?  I need to download an alarm sound?

    Try the audio from bars and tone for a beep.  You might want to change from 1000 Hz to 800 Hz

  • I received a notice that my auto renew failed because the credit card could not be processed.  I've updated the information, now how to make certain that my fee was properly paid?

    I received a notice that my auto renew failed because the credit card could not be processed.  I've updated the information, now how to make certain that my fee was properly paid?

    HI nocaldavid,

    If you're referring to your ExportPDF subscription, I can confirm that it has renewed successfully. The next in your account billing date is November 27, 2015, and the account is active.

    You can find a receipt for your payment by following the instructions in this document: manage your membership and your payment. Creative cloud. Look in the section payment & credit card.

    Best,

    Sara

  • How to exclude a task of the ETL container

    Hello

    I'm under load ETL full instance Oracle Financials R12.1.3 Vision, where one of the tasks is a failure and had that subsequent tasks 86 fail as well.

    The task name is SDE_ORA_ProductDimension.

    I have one suggested by Oracle Support to exclude this task of EP.

    Can someone tell me how to exclude that of the available container, EP?

    Release of the olive TREE is 7.9.6.4 and Informatica 9.1

    The details of the error log, you can find here http://pastebin.com/hZRHJssi


    Thank you
    Naeem Akhtar

    Published by: Naeem Akhtar Khan on February 28, 2013 20:44

    Hello

    make a copy of a predefined container?

    You can't change the objects in containers of system predefined source DAC Client either directly from the SQL statements in the repository of the DAC. You must make a copy of a predefined container in order to make changes to it.

    You could see how to create a copy of a container is predefined in Oracle DAC documentation: http://docs.oracle.com/cd/E25178_01/fusionapps.1111/e14849/dacquickstart.htm#BABJIIBB

    It will be useful,

    Benoit

  • How to exclude a date from a query

    Hi all

    I have a request to the user that are not sice connection 2 days of audit, but to exclude these days that are holidays in the calculations.

    SELECT active_directory_user FROM SYSTEM_USERS WHERE active_directory_user IN
    (SELECT DISTINCT active_directory_user from admin. SESSION_AUDIT WHERE LOGON_TIME < SYSDATE-1);
    How to exclude Sundays for example?
    My paintings is less than
    SQL> DESC SYSTEM_USERS
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ACTIVE_DIRECTORY_USER                     NOT NULL VARCHAR2(30)
     PASSWORD                                           VARCHAR2(50)
     DEPT                                               VARCHAR2(20)
     ROOM                                               VARCHAR2(10)
     ROOM_PHONE                                         VARCHAR2(30)
     MOBILE#                                            VARCHAR2(20)
     TOTAL_LOGINS                                       NUMBER
     USER_STATUS                                        VARCHAR2(20)
    
    SQL> DESC SESSION_AUDIT
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ACTIVE_DIRECTORY_USER                              VARCHAR2(30)
     LOGON_TIME                                NOT NULL DATE
     APPLICATION_USER                          NOT NULL VARCHAR2(30)
    Published by: Maahjoor on February 5, 2013 22:50

    Maahjoor wrote:
    Hi all

    I have a request to the user that are not sice connection 2 days of audit, but to exclude these days that are holidays in the calculations.

    SELECT active_directory_user FROM SYSTEM_USERS WHERE active_directory_user IN
    (SELECT DISTINCT active_directory_user from admin. SESSION_AUDIT WHERE LOGON_TIME<>
    How to exclude Sundays for example?

    select active_directory_user
    from system_users
    where active_directory_user in
      (
        select distinct active_directory_user
        from admin.session_audit
        where logon_time
                     
    

Maybe you are looking for