Replacement of CSV tab

I have replacement problem of file CLOB table.


I read each line form CLOB files to varchar2 (4000) variable, and it looks like this:

-> = tab - chr (9)


I want to put the "X" in the columns of my varchar2 (4000), where there is no value.

Final result should be:

a->X >X >d->e
a->X >X >X >e
X >X >c->d->e
a->X >X >X >X

Number of columns of o in file, can be greater than 5.

Someone knows how to do?



Robert_D wrote:

OK, some I think to use the REGEXP_REPLACE function to replace the string 'any_one_character ' | Chr (9), but I don't know how to write this formula.

If I understand the problem, you don't want to replace "character", you want to replace "no character".

Here's a way to do it:


, CHR (9)

, 'X' || CHR (9)


, '([^' || CHR (9) | ']+)X' || CHR (9)

, '\1' || CHR (9)


If you would care to post CREATE TABLE and INSERT for some SAMPLES and the desired results statements, then I could test it.

The problem is add an 'X' in places where there is no other character.  We cannot simply replace CHR (9) | Chr (9) with CHR (9) | 'X' || Chr (9) because, when there are several tabs in a row, it takes each of them twice.

Here's how the above query.

REPLACE adds an 'X' before each tab, whether it is necessary or not.  Then, REGEXP_REPLACE removes 'X' of the places where it is not necessary, i.e. when there are other characters already before the tab.

Tags: Database

Similar Questions

  • How can I replace the Playlists tab on bottom of Apple's music with the Connect tab?

    How can I replace the Playlists tab on bottom of Apple's music with the Connect tab?

    Found my own answer online.  It's in the Restrictions under settings.

  • want a link to open it in a new tab instead of replacing a current tab

    When I click in mac mail, it replaces a Web site in a current tab. I want a link to open it in a tab of its own.

    And now it works. Maybe change to the default browser firefox did, or there was something in the automatic update may 9 fixed it.

  • I need a replacement for Perma tabs addon

    I upgraded to 4 FF. from 3.6.17 is all my addons upgraded ok or I could find satisfactory FF 4 compatible replacements for them.

    The only one that I could not do that with is Perma tabs.

    This is an extremely important tool for me because every time I open FF there are at least 4 different sites that I go to every time and it's a royal pain to open new tabs for them each time.

    Does anyone know of a compatible extension of FF4, that will emulate the function of Perma tabs.

    Note - I sent the Director and literally begged to do it please Perma tabs works with FF4.

    I'll be very grateful for any suggestion regarding a compatible extension of FF4, that will emulate the function of Perma tabs.

    You can use the open dialog box file to install it.

    The method to access the open file dialog box depends on whether you have traditional menus or the new style UI with the orange Firefox button.

    If you have traditional menus, on the file menu, select open the file. If you have the Firefox button orange instead of the menus, click on the orange button Firefox, select new tab, then open the file.

    If you then open the file as it will install the extension.

  • can I find/replace the leader tab character?

    I have a Word document that I'm slope in ID and there are a lot of different tab with the leaders of the dot stops. The dot leaders are a simple point, but I want not a 'space-point' in order to spread them out more.

    I can't understand how to find a tab with a character specific point leader and change to another - if it was a uniform set of rules of text I want to make a Style with what I wanted and find/replace all, the problem is, is that there are a few pieces of text with two tabs three and four as well as "BOLD" and regularly mixed in so I have to make a Style for all versions of tab stops and it's longer than I want to take with it.

    So, is it possible to change only the leader? What is Grep something?


    ID CS5 7.0.4 MacPro 8-core, 14 GB of RAM, Snow Leopard

    I think that may have to be scripted?

    However, you can do a search for "^ t".

    And increase the tracking/kerning in the change format (200 should do)

    Maybe do a replace/find so you can't change something unexpectedly.


    I just installed ZoneAlarm free.
    Everytime I open a new tab, you'll see ZoneAlarm instead of Firefox.
    How to drive new tabs with Firefox instead of Zonealarm?

    OK, so go ahead and reset Firefox. Refresh Firefox – reset the parameters and modules

  • Is it possible to have the 'Home' icon to open a new tab instead of replacing the current page to the homepage?

    I would prefer the 'Home' icon on the Navigation toolbar to open a new tab instead of replacing the current tab with the homepage. Is there a way to do this?
    Thank you.

    If you middle - click the home will open a new tab that contains the home page.

  • How to replace "Withdrawal on the right tab" character?

    Hi all

    I want to replace "Tab" and "Withdrawal right tab" text "< TAB >". Replace 'Tab' works very well. How to replace "Withdrawal on the right tab"? Here is my Code.

    var myParaContents = app.selection [0] .paragraphs [0] .silence;

    myParaContents = myParaContents.replace ("\t" ","< TAB >"");     This code replaces '\t' to '< TAB > ". Like that, I want to change the withdrawal right tab character.

    Alert (myParaContents);

    Thank you and best regards,

    Robert S

    Try this,

    var myParaContents=app.selection[0].paragraphs[0].contents;
    myParaContents = myParaContents.replace(/\u0008/g, "");
  • How can I stop Firefox to crush a new tab on the old?

    I'm trying to find a way for me to get a new tab on the presentation of a new URL. Because I want to pass between the old an new tab in the tab bar. I can't find the solution and therefore Firefox always replaces the previous tab in the tab bar. Can anyone help?

    For links in pages, or bookmarks, in addition to the context menu, you can use these methods to open a link in a new tab:

    • CTRL + click (hold down the CTRL key and click on the link)
    • Middle-click (use the scroll of your mouse wheel click the link)

    If you type a URL in the address bar and you want to open in a new tab, you can:

    • Hold down the ALT key and press enter
    • CTRL + click the 'go' at the end of the address bar

    There are a few modules focus on the tab with a superb range of features, which can be always open in a new tab. I haven't checked this myself, but these are very popular and could be a good place to start your search:

  • Lost all my tabs open with the last update

    I've updated Firefox with your last update of security and since then Firefox would freeze with a script error when I tried to go to one of my tabs. I followed the troubleshooting instructions and he created a "Old Data" folder in my office, but the new page of Firefox did not my tabs. How can I get back them? Can I cancel the update and return to the previous state of Firefox before the update?

    (edited to replace labels with tabs - c)

    Thank you all for trying to help. Here's what needs to be done to solve the problem when Firefox is installed on a mac. When you tried to reset your profile, note that there is a folder created in your desktop called 'Old Foxfire Data' or similar to this one. It contains all the data that has been cleaned up in the new profile. Delete the Firefox application and download a new application of Foxfire. Then launch Firefox. When open go in the tab 'Help', above. It's the last of them. Once you click on help, then click on "troubleshooting information. The first section is called "Basic application". In this section, click on the tab "show in Finder". It will display your profile folder. It starts with a letter and then a bunch of numbers and letters. But it will contain '.default' and some other figures. Now go to the first folder in your office called old data Foxfire and open it. Note that it will also have a similar profile folder. Open it and go to this folder copy all 80 more files. Now go to the new profile folder, open it and paste all files in this folder from backup profile to the profile folder. Click Yes to replace all the files that you paste into the new profile folder. That's all. Close, close and restart Firefox. You will have all your history, bookmarks and any label that you had open before the crash. Also, I say stop mac and restarted the computer, so that all possible conflicts would be eliminated. PS: The deletion of your profile folder and paste the old folder in its place it will not work! You need to replace all of the files in the new folder with the files from your profile in the old data folder.

  • How to return to the new interface of tab with the pinned in the current tab sites

    After surfing, let me return to where I started - the beginning, as if I just open the tab where I can see my pinned sites. is it possible in the current tab?

    It would be easier to go forward, for example, type or paste or click a bookmark for on: newtab (page 9-thumbnail). The reason why I'm proposing is that when you load the first page in a new tab, it "replaces" the new tab page, so there is no way to come back.

  • I would like to have web links automatically open in a new tab. How to make this happen?

    1. when I open Firefox I set it up my gmail page automatically opens. When I want to go on another site a new tab does not open but replace my gmail tab. So I have to use 'back' or 'story' to return to the gmail page. This becomes difficult when I was surfing the web & then have to go back "" across many web pages. I wish that every webpage to open in its own tab. How can I do this?

    2. in addition, in the google help center he said: 'If you want to open a link in a new tab instead, just right click on the link and select Open link in a new tab from the context menu." I tried this & the ' Open link in New Tab ' did not appear in the menu. Can you help me find this menu?

    If you use Ctrl + left click or middle-click on a link then the link should open in a new tab.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Is there a way to get FF by default for your home page, when you open a new tab, instead of open a blank tab?

    My homepage is set to Google search, and when I open a new tab, I'd like to open this page, instead of a blank tab. As it is, I always click on the home button in the toolbar of FF, to replace the empty tab with a new Google search page.

    You can do this by using an add-on such as:

    Another way to open the home page in a new tab is in the Middle, click the home button in the navigation toolbar.

  • The powerful ' find and replace ' features are missing pages

    It would be good if the development team of Pages read the questions and the problems posted on the apple Support communities.

    Find and replace invisible characters (tabs, returns, etc.) have disappeared in the Pages for older versions.

    Other researchers suggest that the functions are in the NON Apple software. Duh. TextEdit not more and not pages. Disappointing, can not describe the feeling.

    The new Apple:

    "He Just (not!). Work' and 'where's the Hell... ».

    There is that one thing I use 5 Pages for: drawing, which can be fun in its limits. As a designer, I like he is aligned with the alignment that makes things very fast for me. Unfortunately, other sucks.

    Pages ' 09 is pretty horrible at drawing but great for the layout and productivity. The contrast between the two is remarkable, when I switch between them. If only I could have 5 Pages, in Pages ' 09 drawing tools, I could happily mix 5 Pages completely and be totally unaware of anything that does not work or works so badly she may as well not exist.

    2016 is coming with the editor of affinity, I hope it turns out as well as the designer of the affinity and Photo of affinity, but doubt that it will be the combination of WP, PAO and spreadsheet that makes Pages ' 09 so awesome to work with.


  • does not control tab

    It seemed to me have done something for my tab control.

    I click on the different tabs, but nothing happened.

    This isn't a level VI.

    Written from the start in 2014 of LabVIEW.


    Try to replace your indicators tabs to controls, which seem to work for me.

Maybe you are looking for

  • Firefox crashes repeatedly with crash reporter. Reinstall is not good - same problem

    Everything worked "fine" years. Then he crashed and will not start now. A perfectly clean reinstall (all washed it first) gives the same problem: crash report appears whenever I start. Crash ID: bp-15f22109-1638-4bb6-a673-23f942150928 Cannot add trou

  • Thunderbird barely works, constantly freezes

    Thunderbird freezes does not respond when I do anything, such as clicking something or even to move the mouse. It works very well for the first few seconds after it starts but slows down immediately and constantly freezes. I rebooted in safe mode and

  • my broadband speed is lagging on Windows but is normal in safe mode. Why?

    my broadband has to operate at 50 m, but I get only 25 m in normal mode, but when I do a test in safe mode with network I have complete 5 m can you tell me why and there at - it anytyhing I change mode normal mode to fix this

  • Custom LabVIEW projects

    I'm trying to create a new template to be used with LabVIEW 2013 Create Project wizard. I followed the tutorial "using examples and custom models of projects to develop LabVIEW projects" but always seem to have questions. I'm sure it's something real

  • cannot play videos from facebook

    I have Windows 7 Home Premium (64-bit), Internet Explorer 9 on a HP G60 laptop. I also have Flash Player When I click on play on a facebook video, the video disappears and leaves a white spot. I tried MicrosoftFixit.IEAddon.Run.exe and M