How to replace REPLACE

Hello

using 11.2.0.4 EE.

How can I replace the following text:

"replace (replace (replace(config_item,'COLLATERAL','COLLAT'), 'AGREEMENT', 'AGREE'), 'VALUE', 'VAL').

with a single regular expression or something simpler?

The reason is that I need something simpler since several channels will simply replace the three currently listed.

Thank you

Peter

With regard also to the current. Maybe wrong...

Regex_replace cannot replace the multiple character with several characters!

but can replace several character by character.

SELECT REGEXP_REPLACE ("WARRANTY and AGREEMENT and VALUE", "WARRANTY |") AGREEMENT | THE VALUE ', 'REPLACE')

Double;

output:

REPLACE and REPLACE and REPLACE

You can try something like below. (recursive with as mentioned by Frank Sir)

with alias1 as
(select rownum col1 , data1,data2
from (select 'COLLATERAL' data1, 'COLLAT' data2 from dual union all
select 'AGREEMENT'data1, 'AGREE' from dual union all
select 'VALUE'data1, 'VAL' from dual)) , --- get replace character
alias2 as
(select 'COLLATERAL and AGREEMENT and VALUE' col1 from dual),
r(str,lvl) as -- get complete string for replacement.
(
select REPLACE(col1,'COLLATERAL','COLLAT') str, 1 lvl  from alias2
UNION ALL
SELECT REPLACE(str,alias1.data1,alias1.data2) str, lvl + 1
from alias2,r,alias1
where alias1.col1 = r.lvl
)
select str from r where lvl = (select max(lvl) from r);

output :
COLLAT and AGREE and VAL

I hope that helps!

Tags: Database

Similar Questions

  • How to replace the contents of the settings/passwords backup server / current browser bookmarks?

    Classic scenario: after the bookmark long manual organization Firefox Sync adds trash of its server to my laptop or tablet.

    Where can I find how to replace the content of the backup of the server by settings/passwords / current browser bookmarks? Stupid me, I put a new synchronization and lost this ability.

    It is not recommended to go back to the old version of Sync

    The old version is removed he'll stop being available soon, it takes getting used to using the new version.

    IIRC, it is actually possible to force synchronization of the old working with Fx29 & Fx30 using an old profile or preferences of piracy, but I don't think I should encourage users to try this, but it would be better than using an older version of Firefox which is really bad. In fact using an old outdated version of Firefox is so bad, that it is customary to recommend using a browser on alternative day of someone else instead.

    Firefox ESR is aimed at corporate users, definitely, at the moment, it will use the synchronization of the former. Who will update soon to use synchronization well again, and this time, I guess the synchronization of the former will probably totally frowned upon for example are not available at all.

    It is possible to use the feedback system to leave a short comment on Sync. I would recommend this making, but at least to make very many people of spirit comments that I doubt will have no effect.

  • indicators red green and yellow are grey, I have accidentally uninstalled something in the "login items", but don't know what or how to replace. Thank you!

    indicators red green and yellow are grey, I have accidentally uninstalled something in the "login items", but don't know what or how to replace. Thank you!

    You have probably changed the OS X. go theme color in Preferences-> general systemand pass ' appearance: " "Blue ".

  • How to replace the optical drive on the Tecra R940

    Hi all.
    I search everywhere trying to see how to replace the ODD (optical disc drive) of a laptop Toshiba Tecra R940? pt439a-00n003
    its supposed to be easy, but can't get out.

    Anyone know where I can get some info on how to make the?

    Thanks for reading!

    I think that there are just one or two screws holding it on the basic coverage, it then behind the scenes.

  • HP Designjet T790ps 24 in.: how to replace the outdated cartridge Message

    I have a T790 that shows shows an expired HP 72 Magenta cartridge.  40ml of ink remaining in the cartridge a.  The printer worked intermittently after he extinguished/turned on, print diagnostic impressions and other seemingly random measures, however, there seems to be noting I can do to print on Windows 10 device at this time.  I have the latest firmware and the printer driver and the printer will reprint items in the work queue.  I can't find instructions on the printer, in the user manual, or the ink cartridge expiration on the computer screen message that tell me how to replace even if this page (http://support.hp.com/us-en/document/c01764161) says it is possible for the T790.  Can someone help me?

    I agree.

    I prefer to use the TCP/IP port instead WSD

  • How to replace the current Apple TV remote Siri

    I lost my remote Siri. I bought a new, but now when I want to pair it with Apple TV (raising flight + menu) is not pair. If I select Remote (using the remote app) it shows the old remote id. Any ideas on how to replace it?

    Here's the process:

    http://help.Apple.com/AppleTV/#/atvbc9953e63

  • Satellite Pro L50 - a: how to replace the memory, HARD drive and battery

    I just uploaded 2 new video from Youtube on the L50 - A. Satellite Pro

    The first is a tear down showing how to replace the memory, hard drive and battery (you can also clean the fan if it detects overheating).

    http://www.YouTube.com/watch?v=IG0lW7t92bI

    BTW why they made it so difficult to get just to the battery in this model?

    WARNING - proceed at your own risk and don't forget static precautions!

    Hope they help and if you have any questions let me know.

    + The message was edited: link has been removed ad channel may not +.

    Thanks for these videos. It may be useful to replace the memory, but I think that the owners of the laptop should not open the case. This may void the warranty.
    Be careful about this.

  • HP PAVILION DV7 4051 NR: HOW TO REPLACE THE LID OF THE HP PAVILION DV7 4051 NR

    I'M TRYING TO FIND A VIDEO THAT COULD ME TELL HOW TO CHANGE THE COVER ON MY HP PAVILION DV7 4051 NR. I LOOKED THROUGH MANY PAGES ON THE INTERNET, YOU EVEN ON THIS SITE SUPPORT AND TROUBLESHOOTING OF TUBE AND FOUND NOTHING. I' BE VERY APPRECIATED IF ANYONE KNOWS WHERE TO FIND A VIDEO WITH STEP BY STEP INSTRUCTIONS. Thank you.

    @Pitirre

    Thanks for the reply,

    The link that I posted earlier, gives you the step by step guide on how to replace specific parts depending on the product you select in the list of options that appear.

    Although, given that it does not work as I expected, try this video (youtube-3rd part - please avoid ads)

    If you want to help others looking for the same solution, as you found, mark the message as acceptable Solution.
    If you wish to testify of my effort, please click on the thumbs violet icon at the bottom of my comment.

    And I hope that you have a good day Ahead.

    Kind regards

  • How to replace the CD/DVD-Rom on Satellite Pro 2100

    Hello

    My laptop's dvd - rom drive is old and broken, now that I have here an other dvd - rom drive, but I don't know how to remove the old dvd - rom without removing all parts of my laptop. Is there some service manuals how to replace the dvd - rom drive?

    Hello

    I m not 100% sure on the CD/DVD drive replacement on this laptop, but I assume that the procedure is very similar to other portable players.
    For the most part the ODD is secured with the screw at the bottom of the unit.
    You will need to remove this screw to get out and to swap the drive.

    But be careful and don t there if you have no experience!
    Moreover, not all readers are compatible and supported in reason parameters master/slave/c-salt. If you n t know which drives are compatible you should ask the ASP in your country for advice!

  • Qosmio G50 - 10J: how to replace the optical disc drive (ODD)?

    Hello

    the optical drive of my Qosmio G 50 does not work properly, it reads only some movie-DVD, but unfortunately not videogameDVDs at all, so I can't install any games.
    The guarantee is also outdated. So I wanted to ask if it is possible to change the disk myself, if it is then how I had to do and if by the laptop would be in
    risk to get damaged?

    I would be very grateful for each tip and all the help guys can give me!

    Best regards
    a.z.

    Hello

    In various cases the ODD replacement is very delicate.

    If you wish, you can consult this forum category.
    Here you will find some videos how to replace the ODD on the different laptop models:
    http://forums.computers.Toshiba-Europe.com/Forums/Forum.jspa?forumid=115

    This is also a nice Youtube Channel which provides the instructions how to replace the ODD:
    http://www.YouTube.com/user/toshibaeuropesupport

    But the ODD laser lens may be dirty. In my case I could solve similar problem, cleaning the lens of the laser by using a cotton ball and alcohol tip.
    But make sure that this!

  • G1 215 F2R56UT #ABA notebook: how to replace a covered G1 215 HP protectsmart hard drive

    Can someone give info on how to replace the hard drive in this notebook?  Looking for a video or a manual.  Thank you!

    Hello

    The procedure is detailed from Page 52 of your Service and maintenance Guide.

    Kind regards

    DP - K

  • How to replace the battery CMOS on Satellite A30 504?

    I have big problems with my satellite A30 504... it does'nt see the HARD disk at startup, my only solution was to press the power button for many times so far.

    My HARD drive is ok so I think that the problem comes from the cmos battery, but I do not know how to find out what type it is and how to replace.

    (PS. Sorry my English, I'm not an English speaker)

    Hi Adrian

    Battery CMOS is always placed in an uncomfortable position and to swap the battery of the device must be removed. If you didn t done this before please don t do this alone. One small mistake and you can damage a plastic cover of the unit.

    I recommend contacting the service and allow them to do this for you. It costs a little, but you will be sure it will be done on the professional track. When the unit is disassembled it can also be cleaned of dust.

    Back to HARD drive: how you know HDD is not faulty?

  • Satellite P200-1EE - how to replace the keyboard

    Ive just bought a replacement for my P200-1EE keyboard, I have an idea but how to replace, anyone know?

    Hello

    The keyboard is fixed with four screws that are hidden under the cover of the thin plastic strip above the buttons of the F1 to F12 keys keyboard.
    You may need to remove this plastic cover to gain access to the screws.
    But you must be careful because it could break.

    The keyboard is connected to the motherboard with a flat cable.
    First disconnect in order to remove the keyboard.

    But note; If your warranty is valid you should not try this because it might void the warranty.

  • How to replace the screen broke on Satellite M40X-251?

    Hi guys!

    This phone fell an office and the monitor is completely messed up. Nothing else seems to have been damaged, and it still works fine on an external monitor. I'm looking for a screen replacement and instructions on how to replace it.

    How much would cost a Toshiba 15.4 widescreen monitor TFT of 1200 * 800 and where I could get it?

    I can't find a manual explaining how to disassemble a laptop Toshiba M40X to replace the monitor. Could someone give me a link to these repair manuals or to guide me through the process?

    Thanks in advance!

    Found these instructions, I think they would work for a M40X but if anyone can confirm:
    http://www.irisvista.com/tech/laptops/ToshibaM35X/satellite-M35X-display-1.htm

    And the resolution is 1280 * 800 not 1200 * 800, little mistake.

  • Portege R500 - how to replace the SSD?

    Hello

    1. I have trouble using the recovery CD. The computer to read the CD once and give me an error message that it cannot partition the SSD drive. Ask me to restart the PC. Then I insert the CD change once again, the sequence of boot on the CD, but now, the computer does not recognize the recovery CD. Now, the freezing of the PC after start.

    2. I have a legal windows vista CD I tried to install in the PC but I'm not a clean install because the computer does not read the CD

    3. I tried the CD in another computer. I insert the CD to reboot and the computer immediately went to the wizard of microsoft vista.

    4. I tested the CD rom and it works.

    5. I believe that the solid state SSD laptop drive has failed.

    I opened my laptop to check what I need to buy the brand SSD. However, is the first time that I change a SSD drive and I don't know where he is and how to replace. So, if someone can answer with the steps of how to do to replace the SSD I will appreciate it.

    Thank you
    Nils.

    Hello!

    In my opinion, it could also be a problem with the CD/DVD drive. I mean you have tried another drive and the computer laptop doesn t read this disc too.
    So for me it sounds like this drive is also defective.

    But as Akuma said you should also check the SATA Mode in the BIOS.

    I think the best way would be to contact you nearest ASP. They can check a defective hardware for laptop parts and Exchange. If your laptop is under warranty, repairs are free.
    The ASP s list that you can find here:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

    Good bye

  • Satellite L305D-S5904 - how to replace the keyboard?

    How to replace a keyboard on a L305D-S5904? My keyboard has been damaged and there is no option but in replaces it.

    Hello!

    Normally, you can remove the keyboard if you first remove the keyboard cover. Then you should see 2 screws holding the keyboard. Remove the two screws and now you can remove the keyboard, but don't forget to remove the keyboard cable too.

    Disassembly of the laptop is a little tricky and if you don't know how to make a laptop technician should ask for help.
    If your laptop is under warranty, the repair should be free.

    Good bye

Maybe you are looking for

  • HP Compaq 6200 Pro small format: Re-install the network adapter

    Dear assistants & members, Yesterday, I tried to download a 64-bit system that has not worked and had trouble. I am trying to connect to the internet, but it still says: a network adapter was not found (something like that) I have seen a lot of messa

  • FireFTP is compatible with firefox 5?

    I will always be able to use FireFTP with Firefox on my MacBook Pro OS a0.5.8 5?

  • Which company didn't budge, Fitbit or Apple?

    I would like to know which company I should complain to as for the fact that my not since my Apple Watch are not displayed in Fitbit challenges. I got a Fitbit surge, but he fell outside the door. I had a Apple Watch, but now I can't compete with my

  • Is it possible to set a daily limit of data on a Linksys router?

    Well, I would like to give a little back-story. Recently me and those who live with me moved to a rather remote little house in the desert. Thus, our internet options are limited. Our only options were DSL which was 'only slightly faster than dial-up

  • Network and sharing - Windows 7 - Center does not

    Hello I just bought a new laptop Packard Bell with windows 7 (64-bit) and it is not connect to networks. To resolve this problem, I decided to try to do it manually by going to the "network and sharing Center." The loading icon but then control panel