REGEXP - How to exclude word

Hi,
i wanted to know how to exclude a part of word when matching word.
For example i want to exclude all words that begins with 'bc_'
I tried a regular expression like '^(?!bc_).*' but it doesn't seem to work
Does anyone have an idea ?
Thx.

Hi,
Welcome to the forum!
Whenever you have a question, it helps if you post some sample data and the resutls you want from that data.
You can post the sample data in the form of a WITH clause, like Blushadow did, or as CREATE TABLE and INSERT statements:
CREATE TABLE     table_x
(      x_id     NUMBER (2)
,      txt     VARCHAR2 (30)
INSERT INTO table_x (x_id, txt) VALUES (1,  'bc_name');
INSERT INTO table_x (x_id, txt) VALUES (11, 'xxx');
INSERT INTO table_x (x_id, txt) VALUES (12, 'xxbc_xxx');
INSERT INTO table_x (x_id, txt) VALUES (13, 'bcxxx');When posting the results (or any formatted text) type these 6 characters:
\(all small letters, inside curly brackets) to keep this site from compressing the spaces.
Given the data above, are these the results you want?X_ID TXT NEW_TXT
1 bc_name new_name
11 xxx xxx
12 xxbc_xxx xxbc_xxx
13 bcxxx bcxxx
If so, you don't need regular expressions, and it will be more efficient not to use them:SELECT x_id
,     txt
,     CASE
     WHEN txt LIKE 'bc\_%' ESCAPE '\'
     THEN 'new_name'
     ELSE txt
     END          AS new_txt
FROM     table_x
ORDER BY x_id

Similar Messages

  • I just had my old operating system reinstalled, and i can't save pages documents, don't know how to install word

    i just had my old operating system reinstalled after a breakdown, and now i can't save pages documents. i don't know how to install word.

    What was your old system?
    What is your new System?
    What version of Pages?
    How did you install it?
    I don't know if you can see what's on my screen, but I definitely can't see what's on yours.
    To Install Word, buy it and follow the instructions.
    Peter

  • How to exclude salary arrears from pension deduction?

    I have setup a pension retro element and its calculating the retro amount correctly.
    However, its using sum of salary arrears (say,arrears for the month of March and April) and adding that to May salary and deducting pension on the total sum.
    (we do not want this, we want only May salary to be considered for pension retro element)
    Does anyone know how to exclude salary arrears from pension deduction element? Is there any obvious step, which I am missing in while defining the element?

    Hi,
    While doing retro for arrears, it will give at a time in one payroll only, no standard for installment payments.
    2nd option:
    Calculate the Total Arrears amount and divide it by four installments and through IT 0014 with New wage type and give for 4 months as start and end date.
    * you have to create a new wage type which is taxable and assigned to IT 0014.
    * add this new wt in Remuneration form in Earnings side.
    Regards,
    Praneeth kumar

  • How to exclude open items by credit exposure calculation

    Dear all,
    as anybody idea about how to exclude by the credit exposure calculation some old items (in our case all items having document date lower than 01.10.2005).
    These are the basic assumptions:
    i cannot use a special G/L indicator because some of them already have one and i cannot change it;
    i cannot use the reason code field because it doesn't appear on all items (e.g., negative amount open items, and some others)
    some items are positive, some other are negative, some have a special g/l indicator and some others not.
    therefore i am forced to change rules of calculation. Is there any user exit o bte?
    thanks a lot!
    Edited by: Alessandro Casarico on Aug 31, 2010 8:36 PM

    Alessandro
    I think your only option is 'user exits for credit checks':
    LVKMPTZZ
    LVKMPFZ1: USER_CREDIT_CHECK1
    LVKMPFZ2: USER_CREDIT_CHECK2
    LVKMPFZ3: USER_CREDIT_CHECK3
    Good luck.

  • How to exclude stock of a particular storage type from collective availabil

    How to exclude stock of a particular storage type from collective availability check in MDVP.

    you can set the storage location as 'Storage location stock excluded from MRP' value '1' in the field
    Sloc MRP indicator , in MRP view $ when you enter a storage location accessing the material master.
    Thsi is the only way to exclude the storage location, you have to do it per each material and also it is excluded from the MRP.
    With this option the stock is not considered in ATP.
    IF you need the storage location in the MRP, then you should consider the use of MRP Areas.
    With the MRP Areas you define which plants/storage locations belong to each MRP area and the ATP is performed for eah area with the stocks that exist in each of them.
    Please if the issue is solved set the thread  as answered and provide the points to the useful replies.
    thanks for your cooperation

  • How to exclude one or more than one member on report?

    Post Author: izhar
    CA Forum: WebIntelligence Reporting
    Hi all group members, I am working on BOXI R2. I have to ask that, How to exclude one or more than one member from the report. I know there is function of filter, through which we can see our desired members and other remaining will be excluded, but that's filter. In some of tools i have seen just do right click on a specific member and click on "Exclude" option to exclude the member. Suppose i have placed a Time dimension on the report and standing on "Month Level" which has data from 1, 2, ... 7,8, ... 11, 12 Now i just have to exclude member 7 from the report. Can any member guide me here. Regards, Izhar

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    Izhar,
    If you run the report in "modify" mode, then you have two options
    1) You can click on the "Show/Hide Filter Pane" button which opens up the "apply filter" pane.  From there you go to your Data panel and grab, drag, and drop an item from the Data panel into the apply filter pane and provide a constant or select a value to filter in or out from your report.
    2) You can highlight the column of data that you want to filter on, then click on the "Add Quick Filter" button.  Using the List of Values menu you either select one or multiple items that you want to include in the report.

  • How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie

    How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie -  simple answers please - Thanks in advance.

    @Pipeline2007 - which version of Microsoft Office have you got? Older versions of Acrobat aren't compatible with the latest versions of Office, see this link for info:
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html

  • How to setup word docs, converted to PDF on local drive with links to a second file at a page

    how to setup word docs, converted to PDF on local drive with links to a second file at a page
    Need to setup a set of word documents, converted to PDF that has links from one file to a second file at a given page.
    I would like to setup a set of pdf documents, on the hard disk of a PC or Mac, that can be open with acrobat pro running on the same computer and have the link jump to, and open in a new window, in acrobat pro, to a given page of a second document in the set.
    Is there a way to setup a link in word and the conversion to pdf that will result in a link that is equivalent to the acrobat link type  you get when you add a link of the type Go to a page in another document?
    Tools-Advanced Editing-Link tool, make a box
    Check: Go to page view, Next (Create go to view dialog opens)
    Open second document and go to page
    Click “Create go to view dialog” to set up link
    Result is a link, when view by link properties, with an action of
    Go to a page in another document
    File: C:\My Documents\second file.pdf
    Page: 43
    Zoom level: Custom
    I got close but did not solve the problem:
    I have a version that uses links to a website, using #page=43 at the end of the hyperlink.
    That works but will only open to the page if is through the web browser, opening the acrobat reader plugin.
    I need to open from a folder on the local harddisk (with relative links), in acrobat pro to the given page of the pdf, on a PC or a Mac.
    I could bookmark each page “pagenumberxxx” and jump to the bookmark/page if that would get around some problem
    Current Systems in use to create documents with links and view them:
    Windows XP SP3
    Word 2003 SP3
    Acrobat 9 pro version 9.4.4
    Or just to view them:
    Mac OS 10 Lion version 10.7.4
    Acrobat 9 pro version 9.5.1
    (note I have limited understanding of Mac’s)
    John

    No.  There seems to be no automated way to do it.  You can of course go into the PDF and manually add links after you have converted to PDF, but that is what we want to avoid having to do.  We want it to be automatic from the Word doc.

  • How to exclude sales office for combination sales order type/division?

    Hi experts,
    I would appreciate if you could advise: How to exclude sales office for combination sales order type/division in ECC 6.0 ?

    Hi
    Standard SAP functionality would not be able to cater to this. Ideally create a Z table with sales order type and sales office combination. Put in entries for combinations that are allowed. In Sales order program MV45AFZZ use the exit USEREXIT_MOVE_FIELD_TO_VBAK. In this exit write down the logic passing the sales office determined and the order type and check if the entry is there or not. If the entry is there then it should go on to the next step. If it does not then pass an error message. You need to use the help of your ABAP er for this.
    Thanks
    Indranil

  • How to install word and excel on a 13' Retina Display Macbook Pro without a disk drive?

    how to install word and excel on a 13' Retina Display Macbook Pro without a disk drive?

    You will either need to download the apps or use a USB SuperDrive/3rd party CDROM drive or copy your apps onto a USB thumb drive from another computer.

  • How to read word document in pl/sql

    How to read word document which is stored as BLOB column in table.
    I want to read it word by word.Please explain me how to raed using DBMS_lob
    package and substr,instr.

    You cannot. A Microsoft Word document is in a proprietary binary format. You cannot treat it as a text file and read "word-by-word" from it.
    As for examples - refer to the [url http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm]Oracle® Database PL/SQL Packages and Types Reference manual. It describes DBMS_LOB and its usage in detail.

  • How to exclude two kind of files in the same folder in sender cc?

    Hi,gurus:
    Now we are using "advanced selection for source files" in sender file adapter.
    Our requirement is as below:
    The source directory is  c:\test and there are many files in the directory.
    We want to transfer all the files except aa.txt and bb.txt.
    We have to implement it in one scenario,but it couldn't work.
    It worked only when we transferred all the files except aa.txt or bb.txt,but not work when we want to transfer except aatxt and bb.txt.
    I checked the blog "XI/PI: how to exclude files in a sender File adapter?",but it is not the same issue.
    Any help will be appreciated.

    Hi,
    The only way to solve your purpose is
    Provide the list of file names like c. d. e. f. whatever possible number of file names in the "File Name Mask" column and provide the directory names by clicking on plus for additional rows. just dont use aa.* and bb. anywhere.This will do your purpose.
    Thanks!

  • How to Exclude a sub directorys from polling using FileAdapter of BPEL Proc

    Hi all,
    I have a BPEL process with file adapter which is polling to root folder .
    I want to exclude File polling for some of the sub folder of the BPEL process.
    How to exclude file polling for sub folder i know the option is available for file name not for folder.
    Thanks
    Phani

    dude, you have to give the exact name of the folder you want to poll to,
    you can also pass the location of the folder at runtime/dynamically.
    In 10 G only single location can be polled by single file adapter
    in 11 g we can poll different folders by single file adapter
    However I doubt that there can be selective polling to multiple folder.

  • How to exclude the backup of a drive in vmware mirage server

    I want to ask that how to exclude the backup of a drive in vmware mirage server.

    I have developed an environment called VDI(Virtual Desktop Infrastructure) in which user is assigned a drive(i.e. D:).When I use to take backup of D: drive then by default with D: drive mirage server use to take backup of C: drive too.That's why i want to exclude the backup of C: drive .Please help me out to solve this.

  • How to exclude synchronous interfaces from component based message alerting

    Hi Pi experts,
    We are configuiring Alerts in PI 7.3 single stack.If we have 'n'number of interfaces, and if we configured general alerts for all.How to exclude synchronous interfaces in that.Alerting is for asynchronous interfaces only.How to do that.
    Please advice on this.
    Regards
    Suneel

    Hello,
    >>What are your approaches regarding this requirement in the context of java-only?
    I would suggest you to schedule jobs like this:
    Customize Alerts Using Job in PI 7.31/PO
    >> alerts are consumed according to the given interval and not in "real time" when error occurs, today solution using BADI is "real time" - if possible I would prefer "real time" solution
    Check this:
    Michal's PI tips: How to trigger an alert for Component Based Message Alerts (CBMA) via "API" ?
    >>an separate service determine the actual alert count would be helpful to provide the correct value for maxAlerts, this have to be called beforehand
    I haven't tried it but i think u can do that, since these consumers are nothing but JMS queues only so i think there will be a method to read number of alert counts.
    >>In history I saw emails generated by the standard alert consumer which only contain details for the first alert, in my case I need details especially the message id for all errorneous messages
    If ur max alert parameter is greater than 1 then u should see multiple alert text  (along with message id and other details) in ur email message.
    Thanks
    Amit Srivastava

Maybe you are looking for