Trim white spaces in the string.

Hi all

I want to know how to cut the white space in the whole of the line when reading the file. For that, the threshold is,

October 7, 2010, DRI DEV, 07A0002EE, BIOS 0.75FAWARM 2.003, DRI, 215461 D, 2.0.5-O,, manson, COMPUTING equipment, 07A0002EE '
I use the regexp_replace function. but I'm not able to use the appropriately. See the following query:

Select trim (regexp_replace (October 7, 2010, DRI DEV, 07A0002EE, BIOS 0.75FAWARM 2.003, DRI, 215461 D, 2.0.5-O,, manson, COMPUTING equipment, 07A0002EE ',' [[: space :]]')) text]]))
Double;

o/p: 10/7/2010,,DRIDEV,,07A0002EE,BIOS0.75FAWARM2.003,DRI,,215461D,2.0.5-O,,,manson,GearIT,07A0002EE. Here, the space also replacement including white spaces. I don't want to replace only the remaining spaces space need as expected o/p.

EXPECTED O/p: 07/10/2010, DRI DEV, 07A0002EE, BIOS0.75FAWARM2.003, DRI, 215461 D, 2.0.5-O,, manson, Gear IT, 07A0002EE

Oracle version:

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
AMT for IBM/AIX RISC System/6000: release 10.2.0.4.0 - production
NLSRTL Version 10.2.0.4.0 - Production

Please help me.



Thanks in advance!

Kind regards
Florian...
select
regexp_replace(
  regexp_replace('10/7/2010,,DRI DEV,,07A0002EE                           ,BIOS 0.75FAWARM 2.003     ,DRI,,215461 D ,2.0.5-O     ,,,,manson,Gear IT,07A0002EE'
  ,'^\s+|\s+$')
,'\s*,\s*'
,',')
 from dual

Kind regards
Sayan M.

Tags: Database

Similar Questions

  • adjust the white space at the end of field

    Have a field called title. One program allows the user to update the title and left undetermined amount of space at the end of the string.

    example of title

    ↑ refers to white space

    "FF 12 a ^'."
    ' FF 13 a '. '
    "FF 15 has a ^ ^'.


    Question 1.


    Y at - it a select statement or how I can list the number of records have white space at the end of the string?



    Question 2.

    Can I update the table and use the TRIM function to truncate the white spacess on the end only?

    using something like this:


    FOR TABLE_REC IN TABLE_cur
    LOOP

    UPDATE TABLE
    SET TABLE.title = TRIM (TABLE_REC.title)
    WHERE THE TABLE. ACCOUNT_NBR = TABLE_REC. ACCOUNT_NBR;
    END LOOP;

    QUESTION 3.

    Is there a table alter congratulate that may prevent or use the TRIM function to prevent trialing whitespace to be updated or inserted.

    Thank you very much!!!

    (1) select count (*) in the table where the field is not null and the field! = rtrim (field)

    (2) RTRIM, TRIM no

    (3) add a check on the "field = rtrim (field)" column constraint enforcement

  • Extra white space after the process page

    I'm trying to remove white space after the page is processed.
    Usually it doesn't bother me, but it doesn't bother with javascript.

    Explanation:
    1. I send an xmlhttp request to coldfusion to process.
    2 Coldfusion executes a stored procedure on an oracle database that returns results as XML.
    3 Coldfusion returns XML to the client: < cfoutput > #XmlParse (ajaxXML) # < / cfoutput >.
    4. the client (Javascript) runs the function that manage the data and returns an error because: " xml not at the beginning of the external entity declaration".

    I tried to use with the attribute cfsetting: enablecfoutputonly = "yes", but still the result is the same.

    Any idea or lead in the right direction would be greatly appreciated.

    If it's really the content of ajaxXML, then the above code and cfcontent should solve the problem.

    As follows:


    #Trim (ajaxXML) #.

  • How can I get rid of the white space in the navigation toolbar after installing LastPass?

    I've uninstalled and reinstalled Firefox 64-bit on my Windows 7 laptop. After installing LastPass I get that white space in the search on the left. I didn't know if anyone has had a similar problem. Thanks for your time guys.
    Here is a link to what it looks like on my page. http://i.imgur.com/kpRh0tv.PNG

    You are welcome.

    Please use the support forum for Mozilla.

  • Insert a space in the string

    Hello

    I'm trying to put spaces in the string after each 4 characters (2 bytes).

    Any help will be greatly appreciated.

    Thank you

    hiNi.

    Several ways to do so.  My favorite is the regular expressions...

  • regular expression to exclude spaces in the string

    Now that I'm that sleazy, I need help with a regular expression.

    They must pass (or permutations it):

    [00123]

    [R012]

    [r083]

    These should fail (or permutations it):

    [test]

    [I was here]

    [098 876]

    Ooh [29873 eifvuh]]

    I have most of it (the ' [' must be first; the '] "must be the last;) There must be some middle numbers, but I can't write an expression that will fail if there are 1 or more spaces in the string.

    Thank you!

    Tay

    Several possibilities: try this regular expression.

    ^\[[a-za-Z]*[0-9]+[a-zA-Z0-9]*\]$

  • White space at the bottom of Page

    How can I get rid of the white space at the bottom of this page:

    Carpet cleaning | Seattle | Bellevue | Kirkland | Redmond

    1. Trouble code error (s)
      [Valid] Validation of the markup of http://dirtycarpetangels.com/carpet.html - W3C Markup Validator
    2. Remove height & top of CSS values.
    3. Clear your floats when they became useless.

    Nancy O.

  • Muse white space after the body, but before the page footer

    I just changed with almost a complete rewrite of my site and published it in http://www.lowerphotography.com and all is well except for the HOME page. The change was to take advantage of the new sensitive design which is very neat. Before the change of the HOME page was fine. I watched other observations of white space and made sure everything looked good... not hidden things that I could find. The master page works on all pages of the site. But the HOME page after the body and before the footer has this big white/background space after footer. I don't think it's in the master page as it works for all pages I can say. The homepage has texts and pictures on it and a link to another site. But nothing shows that the cause for me. With all the time I've spent on this site a little "bug" which is just a pain trying to get the HOME page to look really good. Suggestions please?

    You can try the solutions in the following positions?

    How to get rid of white space above the footer of Muse

    White spaces that I couldn't get rid of before the footer...

  • Remove the white space below the text

    Why is there so much white space between the word "Scriptures" and the image below at the top of http://www.tellerbooks.com/faith.htm ? How some of this space can be removed so that it looks like the other product pages such as http://www.tellerbooks.com/public_policy.htm?

    Arrangements of tables are not my first choice for the modern layout.

    Try to remove your CSS table cells default padding and margins.

    TD {padding: 0; margin: 0}

    Nancy O.

  • White space on the right side of the browser (all bugs reported have not worked)

    When I look on my iphone more than 6, I get the dreaded white space on the right side of the browser. In landscape mode, it's good, but in portrait mode, this is where the problem lies. I checked to see if something is on the line in the grid view and nothing is (well, there were a lot of things like the areas of text and images, but I got that fixed but still nothing). The funny thing is, it is only on the home page. If I go to another page, then he is not there. So I checked all over the homepage to see if everything is right on the line and I can't find anything.

    The site is http://www.nathansmart.com/aa - please don't mind the crappy pictures (they are placeholders) and logo (I don't have it ). Someone could just take a peek to see if it appears on their phone? I'll check a normal iphone 6 this evening.

    Also, wouldn't she highlighted when I decrease my browser from office of this size? Why is it only appear on my iPhone and only on a single page? Obviously, there must be something wrong with this specific page, but there is nothing on the lines.

    Some of the images are hanging off the page from about 455 px and smaller. It is difficult to see because they have a transparent background, but you should be able to see in Muse if you have the contours of the block on (view-> show the contours of the block). Drag the clip of breakpoint in the Muse until approximately 415 px and you should see some of the images are off the page to this width (the van of image in particular).

    Hope that helps!

    Anna

  • White space at the bottom of the container

    I've tried everything. I turned off sticky footer and removed the padding down but I can't figure out how to remove white space at the bottom of the container.image.jpegimage.jpeg

    I wasn't expecting the rounded corners to cause problems.

    But positioning not connected and disconnected from the separate elements in a Web page is always something to be careful with. Smart Guides can pop up very reassuring, but Muse simply cannot change the principles of HTML. The length of a text and the depth of a just framework is not easy to predict and anticipate, so a bad alignment can occur. Grouping could help. Try to find a different design that is less sensitive to these effects.

  • There is white space to the right of my design seen in the portrait on a tablet or a phone

    Hello

    I hope someone can help me with this problem, it happens on many of my sites. When my site is viewed on a tablet in portrait orientation or on a phone, there is a uniform amount of white space on the right side of the screen, even if all the elements are set to 100% width.

    You can see on these sites: www.pfcwine.com or www.tracilane.com

    Note: when I bought form templates some resources out there does not happen, clearly that they have found the solution?

    Any help would be GREATLY appreciated!

    In this case, I would look very closely on 3rd party widgets. Delete one by one and in the air, what is happening.

  • White space above the footer...?

    Hi guys,.

    I have problems with my footer and the height of the page to get rid of the unwanted white space above the footer setting.

    I was reading this topic and trying to solve the problem with the steps suggested with nothing will do.

    Help, please

    Thank you

    Deb

    Deborah Hey, it was an easy fix...

    Remember that the Mobile Application layer you created to put stuff and then he switched to the invisible ? I think it's more than enough for a clue...

    TADAA!

  • White space to the right of the browser

    The site can be seen at: mina.liangbros.com.

    I read through many sons and they said I have objects outside the frame or box of muse but I double and triple checked and there is no external object. I have not added the no style scrolling as suggested some people but that is not 'really' problem.  When you click on one of the tabs, you can see the white space (in my case its gray space), or you can highlight text and drag it to the right to see the white space.  Can someone help me with this? His summer gives me a headache! Thank you guys a lot!

    Hello cullanl48700389,

    I think that you are able to see the white space in the case of telephones. As you tried to create a full Web page width then it can happen to the phone if you have not created a separate telephone provision. Please check following and let me know if it helps.

    1. Make sure it is only placed anything outside the page, including the master page.
    2. Make sure that everything that is not a width of 100% items must be placed in the grid overlay
    3. To activate the grid overlay click on view > Show Grid overlay
    4. Enabled grid overlay will show pink shade on the page. Make sure that none of the elements other than the full width are outside this area
    5. If the problem persists, then please share with me .muse file and I would like to take a peek.

    Kind regards

    Vivek

  • How to remove white space at the bottom of the start menu

    Hi, anyone knows how to remove the little white space between the bottom of the horizontal menu and the top of the vertical menu collapse (see below).  Code below is also included.  Is or, if it is not removable, possible to change its color?  Thank you very much.

    bootstrap_menu_2.jpg

    < nav class = "navbar, navbar-default" >

    < div class = "container-fluid" >

    <!-brand and toggle get grouped together for better mobile display->

    < div class = "bar navigation-header" >

    < button type = "button" class = "toggle navigation bar has collapsed" data-toggle = 'collapse' data-target = "#defaultNavbar1" >

    < span class = "sr only" > toggle navigation </span >

    < span class = 'bar icons' > < / span >

    < span class = 'bar icons' > < / span >

    < span class = 'bar icons' > < / span >

    < / button >

    < a class = 'bar of navigation-brand' href = "index.html" > < /a > brand

    < / div >

    <!-collect the nav links, forms, and other content to alternate->

    < div class = "navbar-collapse custom class collapse" id = "defaultNavbar1" >

    < ul class = "navbar-nav, navbar-right nav" >

    < li > < a href = "Music.html" > music < /a > < /li > ""

    < li > < a href = "Images.html" > pictures < /a > < /li > ""

    < li > < a href = "Unity3D.html" > Unity3D < /a > < /li > ""

    < li > < a href = "Flash.html" > Flash < /a > < /li > ""

    < li > < a href = "About.html" > on < /a > < /li >

    < /ul >

    < / div >

    <!-/ .navbar-collapse->

    < / div >

    <!-/ .container-fluid->

    < / nav >

    @media (max-width: 768px) {}

    {.custom-class

    Overflow-x: visible;

    -webkit-too-full-scrolling: touch;

    background-color: #4A72C0;

    height: auto;

    }

    . NAV > li {}

    display: block;

    position: relative;

    -webkit-box-shadow: 0px 2px #8EC1FF;

    box-shadow: 0px 2px #8EC1FF;

    border: 1px solid #005092;

    }

    }

    Massi says:

    Hi, here is an update.  I managed to get rid of the white line in the menu expanded by increasing the height of the image (sorry, I don't think than forward).  So, there is only a thin white line on the left in the menu of the collapse.  If she can't get rid of, its color can be changed?  Thank you.

    Here ya go - save you messing around hunting which was placed on what element and then combination of css classes, get rid of him.

    .NavBar - default .navbar-collapse {}

    border: none;

    }

Maybe you are looking for

  • Satellite Pro L40-17b: bus/video audio high def Win XP driver controllers

    Hi, ;) Please look at this:http://img99.imageshack.us/img99/7296/driversnodig.jpg I don't know which one (s) installation (XP): Satellite Pro L40-17 b Can you help me? Friend Sonaya

  • VM - Mircosoft servers

    Hi all I belong to the technical team in our group where do us the research on things that could help us with our work. We have in fact used a virtual machine but is not a Microsoft one. I just want you guys ask for more information on how Microsoft

  • anyone receive calls from computer warnings Windows Rep.about?

    said he went to Microsoft Windows on my computer made me do a start and assumed he was of Winow. Said I had a lot of problems and had to go through and the next thing there is a page, and it was all the mistakes, said there could be charges and came

  • Cannot install Service Pack 3, error code: 0x8024400a

    Original title: what is error messege # 0x8024400a When I try to download the sp3 on windows xp, I get error mess # 0x8024400a

  • Where is my icon to taskbar for Volume?

    Silly question, but... in the past, there was an icon in the taskbar on my tablet pc where I could adjust the volume on various things like the Speaker Volume, wave, SW Synth, CD player and Monitor entry and I could put a checkbox in a silent box for