Replace between [and]

Hi can someone give me a simple example of how to replace all characrters between ' [' and ']' with coded into a hard string, for example schema name.
I know how to do it with instr but looing for something simple with reg exp probably

Published by: Keith Jamieson, Sep 29, 2010 12:00
SELECT REGEXP_REPLACE('test[str]test', '\[.*\]', '[repleced]') FROM dual

Tags: Database

Similar Questions

  • HP Probook s 4545: defective HARD disk factory replacement needs and so new OS.

    My HP Probook s 4545 was shipped with a HARD drive failure, the system could not book and therefore enter the diagnostics screen black and white, the after he failed the HARD drive tests, it looks like no operating system found etc.. I went to my local reps of HP and they said that the HARD necessary replacement disk and I need to install a new OS. With the HARD drive replaced, I have to install a new OS, however, I was given a CD of the OS (for w7 and w8, the pc has been displayed as w8, but came as w7) on the purchase, but it did not come with a CD key. I don't want to have the windows prompt activate coming on my screen so often, so I was wondering if I could somehow source a CD key for my CD of the OS. The normal response would be to purchase a new authentic copy, however, it was not my fault as it was, as stated, a faulty HARD drive.

    No - the info is in the BIOS, not on the old hdd.

  • How to search/replace between < a href / a >

    Hi all

    How can I find / replace between < a href / a > so that I can replace the link with my own?

    I have to aply that code:

    " < a href =" http://www.Flickr.com/photos/aaronrz/6956154572/ "title ="Spiritual by Aaron Reiff-Susan, on Flickr"" > < img src = " " http://farm8.staticflickr.com/7050/6956154572_a9a5c3a179_m.jpg "width ="240"height ="160"alt ="Spiritual"> < / a > "

    I searched the net but can't find any example or is it?

    Thank you...

    Use regular expressions. For example, the following code replaces the value of the href by http://www.myDomain.com. (View page source). You could do the most efficient regex, of course. Everything depends on your skill. It should, however, remember that in this example, the title attribute remains unchanged.

    #REReplacenocase(str,'href\s*=\s*"[^"]+"','href="http://www.myDomain.com"',"all") #.

  • Between and operator

    Hai

    I wrote a different approach if using bartime field and the data type is varchar if it is possible to use between and run in varchar, it is my coding

    If bar between 0145 and 0630 and: barcode is not null then
    Update dail_att
    the value of timeout =: bartime
    where = barcode: barcode
    and timein is not null
    and ATTEND_DATE =: BARDATE-1;
    elsif bar between 0645 and 0900 then
    insert into dail_att (barcode, timein, attend_date)
    values(:Barcode,:Bartime,:bardate);
    elsif bar between 0645 and 0900 and: barcode is not null then
    Update dail_att
    the value of timeout =: bartime
    where = barcode: barcode
    and timein is not null
    and ATTEND_DATE =: BARDATE-1;
    elsif bar between 1145 and 1300 then
    insert into dail_att (barcode, timein, attend_date)
    values(:Barcode,:Bartime,:bardate);
    elsif bar between 1145 and 1300 and: barcode is not null then
    Update dail_att
    the value of timeout =: bartime
    where = barcode: barcode
    and ATTEND_DATE =: BARDATE;
    elsif bar between 1645 and 1730 then
    insert into dail_att (barcode, timein, attend_date)
    values(:Barcode,:Bartime,:bardate);
    elsif bar between 1645 and 1730 and: barcode is not null then
    Update dail_att
    the value of timeout =: bartime
    where = barcode: barcode
    and ATTEND_DATE =: BARDATE;
    elsif bar > 1730 then
    Update dail_att
    the value of timeout =: bartime
    where = barcode: barcode
    and ATTEND_DATE =: BARDATE;

    Respect of

    srikkanth. M

    Hello

    It is difficult to read your code. Whenever you post the text formatted on this site (and code should always be formatted), type thse 6 characters:

    {code}

    (all lowercase letters, inside curly braces) before and after the section formatting.

    ELSIF blocks are mutually exclusive. If one is executed, all the remaining conditions will be tested.
    So where you were

    ...
    elsif  bar between 0645 and 0900 then
         insert into dail_att(barcode,timein,attend_date)
              values(:barcode,:bartime,:bardate);
    elsif  bar between 0645 and 0900
      and  :barcode is not null then
         update dail_att
              set timeout = :bartime
              where barcode= :barcode
              and timein is not null
              and ATTEND_DATE = :BARDATE-1;
    elsif  bar between 1145 and 1300 then
    ...
    

    the second block will never be executed. If bar > = 645 and bar<=900 (regardless="" of="" what="" :barcode="" is)="" then="" the="" first="" elsif="" block="" will="" be="" executed,="" and="" control="" will="" pass="" directly="" to="" the="" endif="" statement:="" the="" second="" condition="" will="" not="" be="" tested,="" and="" the="" update="" will="" not="" be="">

    Maybe you wanted to have these two blocks in reverse order, or perhaps you've wanted to have a nested IF statement.

  • Replace + Find and regex

    Hey there - I have a question about regExp and search and replace.  Basically, I want to search for a wildcard character between a href tag, what that would look like, because the code below does not work.

    countryLink = "< a href =-" http://www.whateve.com "" ------' target =-"_parent\" > ";

    [code]

    countryLink = "([^"] *) ";"

    [code]

    Thank you! Any help is appreciated!

    Also, how can I add blocks of code on this forum?

    I want to search a wildcard character between a href tag, what that would look like, because the code below does not work.

    countryLink = ""http://www.whateve.com \ " target = \"_parent\">"; "

    [code]

    countryLink = "([^"] *) ";"

    [code]

    There is no such thing as an href tag. There is a inside a href attribute. Who do you want?

    To capture the tag and its contents:

    countryLink = "(]+>)";
    

    To capture the content of the href attribute:

    countryLink = "
    

    To insert code in this forum, click the double chevron at the right end of the second line in the edit field, and then select syntax highlighting > ordinary.

  • Needs of synchronization forced to replace send and receive or else everything will not amount to a merger. When can we expect these features?

    I used Sync in the browsers chrome based and had to leave because he managed the synchronization in the same way as this. He did the meaning of thought, that it merges. What ultimately happens is all browsers that connects to it will have its settings and bookmarks scrambled.

    Please add forced Send and Receive with capacity of replacement as well as total manual operation.

    You can provide here that the reactions of Mozilla:
    https://input.Mozilla.org/en-us/feedback

  • Thunderbird eliminated most of the records online and will not let me create new ones to replace them and read email stored in them.

    In order to remove online a large number of files in a folder (a folder IMAP?), I deleted the folder and then created a new folder with the same name. The next time I open Thunderbird, all my online except sent and trash folders disappeared, and I could not re - create files that have been deleted. I can't access the files stored in these folders or move files in folders bearing the names of deleted files. I can create files with names not used before. But I can't create a new folder of Junk to hold files that Thunderbird regularly sends to junk. I do not receive e-mail in the process. Local folders are not affected hereby. What can I do? I have Thunderbird 24.5.0. Thanks for any help.

    Go to file / subscription and see if you just without subscription to records.

    Check folders and make sure EVERYTHING is checked.

    Learn how to use several methods of selection and do not delete the records that you want to keep.

    control + a = select all

    Click heading 1, move upwards or downwards several items and maintain the SHIFT key while clicking the point 2 = selects items 1 and 2, and between the two

    Hold down the CTRL key while clicking random objects = selects any element clicked on

    Hold down the CTRL key while clicking on a selected item = deselect this item

  • I customized my ff and edited a few scratches here and there, but after each reboot ff replaces! and my home/arrow/refresh page buttons are really becomeugly

    Hello

    I use FF for years, but now it is starting to disappoint me! I adapted my FF and added some scratches here and there, and normally, everything else as I want/set but... until a few days... every time I restart FF it replaces some scratches left to right and vice versa! Very annoying!

    Another problem is that my "home/arrow page (rear) / refresh" buttons have become so ugly and small and no I don't thick 'buttons' in the options.

    I don't really know what is the problem, but now it is starting to be very boring!

    Here's a printscreen BEFORE FF it's ruin: look how beautiful the buttons are and other things!

    [img] http://I3.lulzimg.com/1919c1d2a9.jpg line

    And here are FF ugly with ugly buttons and in the good uppercorner strips left the adblockplus should be on the right, but it is replaced by its me after that I restarted FF each time!

    I admit that when I saw that it replaces the scratches I UN-and/reinstalled FF and after that the buttons becomes too ugly....

    What could be the problem?

    This module has been modded to cancel the theme changes in Firefox on Vista and Win7 14.

    https://addons.Mozilla.org/en-us/Firefox/addon/cstbb/

  • P7-1297cb: replaced mobo and now sp56617 error 9996 unresponsive system requirements - no lan internal ethernet

    My mobo going bad and with the replacement(no product #) but Council matches up to visually(ms-7778) not charging not drivers SP56617 - controller network Atheros Original (error 9999) driver does not meet the system requirements?

    This driver is loaded on the card that I replaced it.   Is this a bad mobo?   Is there a setting that has changed needs BIOS?

    The wireless seems to be connected and functional, (I forgot my password-never use wireless), but no internet ethernet?

    Is there a solution > get another mobo... put updated the driver... the bios setting?

    I don't think so.

    Download and install this free utility for files.

    The 2nd listed file is 64-bit.

    http://www.7-zip.org/

    Then download and save, but do not run the ethernet driver from the support page of your PC.

    This package provides the original driver for Atheros Ethernet Controller solutions in the supported models that are running a supported operating system.

    File name: sp56617.exe

    Right click on the ethernet atheros driver you downloaded and select 7 - zip from the list of items.

    Have 7-Zip extract of: and let it extract the file in the file name (sp56617).

    Go to Device Manager and click on the ethernet controller needing drivers.

    Click the driver tab.  Click on set to update driver.

    Select her browse my computer for driver software option and browse to your folder of driver that 7-zip created.

    Make sure that the include subfolders is selected and see if the pilot goes like this.

  • Satellite 1800-814-replacement ODD and HDD

    Hi all.

    I have a Toshiba satellite 1800-814, which has a dvd - rom SD-C2502 reader. This disc runs out of CD playback more every day. The question is: can I replace it for a clone dvd or dvd/rw cheap or should I stay with toshiba parts?

    And a second question. This laptop comes with a disc HITACHI DK23CA-20. What would be the largest size of HARD drive, that I couldn't go?

    Thank you.

    EDIT:
    A search on [eBay | cessories_LaptopDrives http://cgi.ebay.es/SD-R2612-DVD-CDRW-SD-C2202-SD-C2302-SD-C2402-SD-C2502-/180373403969?cmd=ViewItem&pt=UK_Computing_LaptopAc & hash = item29ff17b941] these shows also exchangeable:

    READERS: SD-R2002 SD-R2102 SD-R2212 SD-R2312 SD-R2412 SD-R2512 SD-R2612
    DVD PLAYERS: C2002-SD SD-C2102 SD-C2202 SD-C2302 SD-C2402 * SD-C2502 * SD-C2512 SD-C2612
    DVD - RW DRIVES: SD-R6012 SD-R6112

    Can anyone confirm this?
    Thank you very much.

    Hello

    If you can get it on eBay the same drive, it will work with your laptop. Alternative check the user manual. You will find a list of compatible spare disks and don t forget that not all drives are compatible with all laptops. But the drives listed in the user manual are compatible.

    AFAIK for notebooks with IDE interface there is a limitation of LBA 28 bits. This means that you can use hard drives 120 GB.
    But in the worst case, you can use a 40/60 GB model.

  • Satellite A210-171 - replacement screen and HARD drive

    Hello

    My partner is having some problems with his laptop computer, namely one - screen flickering Guard (lines run through, like a jump of TV) indicates that there may be a problem to use. She's out of its warranty, so I'm going to replace the screen.
    Can anyone suggest where to look for a replacement, we are not rich - I have a budget for it and so I'm looking for some advice.

    Second, she had a replacement hard drive recently, the person who put the new, has done so with a lot less of it, 60 GB instead of 160 GB, I'm looking to replace it in the same was as above.

    So, can you give me advice on this practice as the last time I worked on a portable computer was 2001 (the size of a house!) and also make suggestions on alternatives less expensive which would continue to operate.

    The laptop in question; http://www.morecomputers.com/extra.asp?PN=psafje-003003ks

    We are resident in the United Kingdom.

    Thank you very much

    Hey Buddy,

    In this case, you must contact an authorized service provider. Guys can order all spare parts Toshiba they will agree and will function properly. On the Toshiba site, you can find a list of them!

    On the LCD, you should choose an original. There are many different screen on the market and it is difficult to tell if another would work in your notebook.

    The HARD drive, you can buy everywhere. Just ask Google for some online stores where you can buy it. I have good experiences with Western Digital.

  • What can I use to replace fast and buy in Italy

    Fast and willingness to buy is no longer available to process payments on the Italian iTunes store. What replacement option will be available?

    Who should read click and buy

  • Satellite M35 - drive replacement DVD and compatibility

    My dvd - rw is no longer work and must be replaced. I started this adventure in position directly on the Toshiba site to order my disc replacement on their part. Toshiba provided to order my replacement is a dead link. Given no option to replace my drive by Toshiba, I had no choice but to look elsewhere. I finally found a dvd - rw, the same brand and model, but alas, I have IDE dreaded #2 in startup error.

    I read that the 3rd replacement of readers cd Toshiba through third-party vendors is not an easy thing to do. It seems that the readers are master by default but Toshiba sets on the slave, which means that a player with the default settings will not work. However, it was suggested that it might be possible to work around this problem by flashing the firmware of the player.

    My dvd - rw drive is broken and Toshiba can't solve this problem, then, how can I fix it instead?

    I put t know what you mean less difficulty it but we know that defective optical drive will not be repaired but exchanged. Usually in the user s manuals document there is a list of all compatible optical disk drives. I put t know if the same situation is in US, manual s user (I presume M35 is model laptop us).

    Satellite M30, you can use
    Panasonic-UJDA750
    Toshiba SD-R6012
    Panasonic UJ-811
    TEAC DV-W22E

    Check it out!

  • Replacement installers and exe files...

    OK, so I started working with distributions and had a question... say I create an executable file and the program installation, but once I have start running it I find that I have a little problem... None of which would require an extensive rewrite, but maybe I want to maintain a constant or two or change the size of font here and there... and rebuild my exe file.    Now, I have to build a whole new installation program or can I take my new exe file and drop it on the target machine, replacing the first exe file?

    Thank you!

    C

    For testing purposes, you can usually just replace your executable file.  But you want to rebuild your installer for the official version.

  • Differences between and launch of winnt.exe and winnt32.exe in XP Pro SP3

    What is the difference between winnt.exe and winnt32.exe?

    Lauching deposited in the i386 on the c: drive folder in the search engine with the picture of the dog or through the command-line command with no parameters will I do anything?

    Winnt.exe is the 16-bit version of the installer, it will not run within the Windows environment, it runs under DOS only (and no, the command line is not BACK!).  Winnt32.exe is the 32-bit version of the installer, you can start it within the Windows environment, it will start and ask you additional instructions.

    John

Maybe you are looking for

  • Download the new iphone songs

    Hello any advice on how to download music on the new iphone. It has been synchronized icloud all apps photos etc are there outside the music that gives me an error message when I try to download again them. all the music is gray for starting up the m

  • NX5000 Bios

    Hi, last week I tried to update my bios in windows mode, so, during the bios update windows has cong61ateun... now nothing when I try to start the laptop only led to cd rom drive and hard drive. Does anyone have a suggestion? can I fix my laptop? no

  • Wharton are MediaDownloader.bundle more other files

    I found a file named MediaDownloadKit inside the Application Support folder. Inside this folder are aLogs with tons of files, folder packages 50 or more cases like 1.0.12 containing the MediaDowloader.bundle. Folder favorite icons, logos and vignette

  • Qosmio X 505-Q870 with "slow" disk access

    I "ve got a month several old X 505 870 with 4 GB of memory and TWO Hitachi 7200 RPM SATA II 500 GB hard drives." The system is mainly used for initial review of digital images, with each image being about 20 MB. To access the images to display previ

  • keyboard problem - ctrl, alt key Caps and windows does not

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: Hi friends I have serious laptop keyboard problem. Initially, I had a problem as my keyboard as control key function is jammed up. After