replace multiple spaces with a space

Hello
Oracle 11g R2.

Looking for a way to replace multiple spaces in a row by a space. For example, the 'abc abc' text should look like 'abc abc '. I tried to play with replace, but it only works in the case of 2 spaces. Need a solution for cases where there may be 2 or more spaces.
select replace(column1, chr(32)||chr(32), chr(32)) from tablea

Use regular expressions:

Select regexp_replace (column1, '{2}',' ') from tablea;

SY.

Tags: Database

Similar Questions

  • fill the void with multiple spaces

    How can I create a fill in the blank question with multiple spaces? Specifically, I need to show an equation and my question will look like white = white + white...

    FIB can have as many spaces as you like: select the word, indicate it as white. He was never limited to a white.

    However: you cannot mark partial with FIB.

  • How to replace the spaces before and after a Word with tabs using GREP or search - replace

    Here's the scenario:

    I have a paragraph with spaces (can be 1 or more) at the beginning (before the first word) and a single space after the first word (is be a number if this matter - which may be a single digit or more).

    I'm looking to replace the spaces before each paragraph with a single tab and replace one tab so of space after the first word (number). In addition, I would like to apply a paragraph style to it.

    Thank you very much in advance for anyone who can find a solution. It sounds like a solution of some sort GREP but can't nail. Thank you.

    ^(\s+)(\S+)(\s+)

    and replace with \t$2\t and define the change of setting fit your style.

  • Replace the comma with space - we can do it without REGEXP?

    11 GR 2 DB.

    Can you replace comma with a space without using REGEXP?
    Sample String: 'To,Replace,,Comma(s),,,,with space,,,'
    Expected output:'To Replace Comma(s) with space '

    884476 wrote:
    11 GR 2 DB.

    Can you replace comma with a space without using REGEXP?

    You could do it with REPLACE nested...

    select    replace(
                replace(
                  replace(
                      'To,Replace,,Comma(s),,,,with space,,,',',','#$'
                         ),
                      '$#',''
                       ),
                     '#$',' '
                     ) str
    from dual;
    
    STR
    -------------------------------
    To Replace Comma(s) with space 
    
  • How to replace the paragraph with a space mark

    Hello

    I received the contents of a manual in raster format, but each line of text ends with a paragraph mark. How to replace the paragraph with a mark space otherwise than by hand?

    In Word, this is pretty easy, but I don't see not any provision for it in the search box on 7.2 Frame.

    Yours,

    Michael F

    ========

    \p = end of paragraph

    \P = beginning of paragraph

    See: Help > keyboard shortcuts > keys for the search and replace

  • Gah! Web site has the function which replaces Chr (10) with spaces

    Hello, everyone.

    I'm working on a site that has a function that will automatically replace all Chr (10) with spaces when a form is present. I can't prevent this being used.

    When a form with a textarea component is present, line all the jumps are replaced by spaces, destroying the formatting of what was originally submitted.

    When you pull of the text from a database, how are we going to rebuild line breaks and the restoration of the formatting?

    Thank you

    ^_^

    Optionally, use javascript to replace the lf characters before the form is submitted.  Replace all the lf characters with some other characters that you can later (on the side Server) replace in any character you want.

    I really don't like this solution, but it could work.  It feels good for me because it's just a hack to work around the problem.  I agree with Adam because I would try to remove the offending first software.  Or at least to stop depriving the lf characters.  Is - configurable as to what replaces it?

  • Replace the spaces with a sign +.

    Hello

    On of my items, I have a text... I want to replace the spaces with a plus (+) sign... something linke this


    Select
    text_field,
    Function_replace (text_field, "", "+") new_field
    Of
    table_A

    Like this?

    select regexp_replace('Please replace, me','[ ,-]+','+') replaced_txt from dual;
    
    REPLACED_TXT
    -----------------
    Please+replace+me
    
    Elapsed: 00:00:00.00
    

    HTH,
    Prazy

  • Find/replace 3 space selection

    Dear friends,

    I tried to find/replace for space 3 replace the symbol of selection (please see my code below). How to replace?

    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.findWhat = "..."
    app.changeTextPreferences.appliedGlyph = "…";
    app.activeDocument.changeText();
    
    

    Please suggest a friend.

    Thanks in advance

    Hello

    Try this,

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    app.findTextPreferences.findWhat = «...» »

    app.changeTextPreferences.changeTo = "^ e";

    app.activeDocument.changeText ();

  • Want to Phoenix 810-379stCPO: replace SDS disk with disk cache sata hard

    How can I remove the 16 GB cache who drive and replace it with a HARD SATA 3 TB.  Only 3 slots available and I need another location more disk space.  I also want to replace the boot with a disk of sshd disk.  Is it advisable or will I lose the performance with this option?

    Thank you very much for your help.  I'm about to order a Samsung 500 GB EVO 850 to install as my boot drive.  Thank you for your contribution and your help.  It's really appreciated.

  • Guide: replace the HDD with SSD, Lenovo Y480

    Lenovo
    That's how I replaced my HDD with a SSD in my Lenovo Y480. I did it immediately, so there is no user file to consider. I used a key from Lenovo recovery. Read this guide in its entirety before starting.

    Execution time: about an hour.

    Items, you will need:

    -Y480 Lenovo

    -New SSD (I chose a Mushkin Chronos Deluxe because my research lead me to conclude that it is the best available from June 2012)

    -Small Phillips screwdriver

    -Butter knife or similar to remove the HARD drive. There is not much space for your fingers in there.

    -DVD-r blank

    Step 1

    Turn on the computer.

    Step 2

    Write the number '1' on a blank DVD-R and insert into the optical drive.

    Step 3

    Press the small button just to the right of the power button. This launches a recovery key.

    Step 4

    Follow the instructions on the screen to make restore disks. I chose the factory restore option, which required three DVD - Rs. label each disc with numbers to let you know in what order to use them later. Once it is finished, place back #1 DVD into the optical drive.

    Step 5

    Physically remove the hard drive and insert the SSD drive by following the instructions below.

    1. turn off and unplug your computer, flip upside down.
    2. remove the battery.
    3. remove the access panel by removing the two screws and slide.
    4. remove the two screws that hold the hard drive carrier.
    5 remove the hard drive by lifting upward. There is a right angle SATA adapter plugged into the hard drive. This card just came out with the hard drive.
    6 disconnect the hard drive adapter and plug it on the SSD.
    7 unscrew the hard drive bracket and screw it on the SSD.
    8 put the SSD drive in the Bay, screw the support down and replace the access panel. Be sure to screw it up.
    9. replace the battery, lock.

    Step 6

    If you did not already the first recovery DVD in the optical drive, use a paper clip to open the optical drive and insert the diskette. Close the drawer, then turn on the computer to start the restoration.

    Step 7

    Select the boot drive by pressing F12 when you see the Lenovo logo during startup, and then select the optical/DVD drive in the list.

    Step 8

    Follow the instructions on the screen. The first time that I did, restoration impossible immediately, probably because of a missing partition. However, after restarting the computer by performing a battery pull, then continue to step 6 restore completed successfully.

    I have not compared this drive, but I can tell you that the Windows experience index is 7.9 and startup time is 24 seconds now. The base index is 6.8 for this system now.

    You will find that Windows has already helped TRIM. However, regular defragmentattion was still on. I think that the system restore has been disabled automatically.

    Good luck

    Matt

    I saw no option for this, and I was quite surprised, that he didn't do it automatically. I'm not an expert on everything, so what follows is a guess.

    Perhaps that if you create a partition on the SSD first, recovery will recognize and use it.

  • How to replace Windows 8 with Windows 7 on a Compaq CQ58

    Hello!

    Yesterday, I bought a Compaq CQ58 with Windows 8 on it. I would buy Windows 7 to replace Windows 8 with. But:

    1. it is posible to change 06:52 on my laptop CQ58?

    2 and if so, can I have programs default HP on this subject?

    3 and if so, how?

    When you request support, please provide the model name and product number complete (p/n) of the HP computer in question. HP/Compaq made thousands of computer models. Without this information, it can be difficult, even impossible to help you solve your problem.

    The information requested above are on the bottom of your computer, inside the battery compartment or on the BIOS boot screen. Please see How can I find my model number or product number? for help more to find this information. DO NOT include your serial number. Please enter the product/model information consumer HP Online Support page and post it here for our review.

    1. it is posible to change 06:52 on my laptop CQ58? YES, it is probably possible to install Windows 7 on your computer.

    2 and if so, can I have programs default HP on this subject? NO.

    3 and if so, how?

    WARNING *.

    HP does not recommend installing Windows 7 on a consumer computer comes with Windows 8, and it will support the installation of Windows 7. HP doesn't provide drivers for Windows 7 and the appropriate drivers are not available for the hardware in the computer. In addition, Windows 7 can not take in charge some of the hardware or software designed for the computer.

    Make sure you create your media recovery HP or USB Flash Recovery discs before you edit or change anything.

    You will need to DISABLE "Secure Boot" and ENABLE "Legacy Support" in the "Configuration of the BIOS start-up secure" on the settings page similar to what is shown below, until you try to install Windows 7.

    After you save the changes, the computer will ask you to confirm the changes... Accept the changes by typing the four digit code and press the ENTER"" key.

    If you install from a USB key and see a message of "load a driver - a required CD/DVD drive device is missing", it's because as 'System Configuration' > 'Config USB3.0 in pre-start' is set to 'Enabled '. This should be set to 'Auto '. This should clear up the CD/DVD device is missing.

    In addition, as the hard drive is probably partitioned as TPG, you must start using the internal CD/DVD UEFI or UEFI-Key/key USB to install Windows on a GPT-partitioned disk. Turn on or restart the computer and press "F9" or "ESC", then "F9" when prompted. Select the source of boot UEFI you use and you press "ENTER".

    I suggest using Windows 7 SP1 for the best installation experience. If you need Windows SP1, see 'How to install Windows 7 without the disc' to download and create your own disc of Windows 7 SP1. If the DVD does not start as UEFI, you may need to use a USB Flash drive (can ask "Quick start" DISABLING in BIOS) as the installation media. Please download the Windows 7 USB/DVD download tool to create a Windows 7 SP1 USB Flash drive. Please note that some computers may not recognize a valid active UEFI USB Flash drive if it is formatted in NTFS and may require only a FAT32 formatted USB Flash drive. You should be able to make a FAT32 formatted Windows 7 installation USB Flash drive using Rufus, UNetbootin, Universal USB Installeror WiNToBootic. I like Rufus, because it contains options for 'Plan of GPT partition for UEFI computer' and 'FAT32'.

    From the top...

    (1) turn on the computer and immediately start typing the key "ESC".

    (2) when the MENU is displayed, press "F10".

    3) navigate the BIOS to the "System Configuration", 'USB 3.0 pré-OS Config' and the value 'Auto '.

    4) navigate the BIOS to the "System Configuration", "Startup Options" and "Secure Boot" the value 'Legacy Support' the value "Enabled" and "Disabled"

    5) press "F10" and click "YES" to "Exit Saving Changes".

    (6) computer should restart and display "Change of operating system startup Mode"... type the four digit code, then press "ENTER".

    (7) let Windows 8 boot to the top and put the Windows 7 SP1media in the drive to DVD or a USB port, then logout / stop.

    (8) to turn on the computer and immediately start typing the key "ESC".

    (9) when the MENU is displayed, press the key "F9" and then select the correct boot UEFI source (CD/DVD drive internal, USB drive, CD/DVD, USB Flash drive, etc.). ... Press any key to start the CD/DVD, if prompted.

    (10) select "Language", "time / currency ' and 'Keyboard' settings and then click"Next ".

    11) click on 'install now '... Check "Accept terms" and click "next". Click on "Custom (Advanced)".

    (12) you may need to provide Intel or AMD SATA/RAID drivers at the moment...

    (13) ' where do you want to install Windows 7? Select "Disk / Partition" with "Unallocated space", you created earlier, and then click "next".

    (14) follow all instructions and meet the need. Enter the Windows 7 key when asked.

    (15) download and install the drivers from the support page for your computer.

    After installing the drivers, please post the "Hardware ID" Device Manager (text only) for all other devices missing or unknown as illustrated in the example below.

    If you have any other questions, feel free to ask.

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • How to rename multiple files with the extension in windows xp

    How to rename multiple files with extension in windows XP.

    1. If you want to simply rename the extension, open a run window (Windows Logo key + R), type cmd and press ENTER. Using the CD (Change Directory) command, navigate to the folder in question. Now, type ren *.mp3, *.mp4, and press enter (note the two spaces in the command). Note, rename mp3 MP4 is just an example of the command.

    2. If you want to rename files, download the 32-bit version or 64-bit Bulk Rename, here http://www.bulkrenameutility.co.uk/Main_Intro.php

  • Can I replace Windows Vista with Windows 7 on my laptop which has a 32-bit platform?

    Replace Windows vista with windows 7

    Sam50

    Check the requirements below and run the Windows Upgrade Advisor to see.


    Then my computer run Windows 7?

    Basic system requirements are listed below.  Features have additional requirements.

    • 1 gigahertz (GHz) or faster 32-bit (x 86) or 64-bit (x 64) processor

    • 1 gigabyte (GB) of RAM (32-bit) or 2 GB RAM (64-bit)

    • 16 GB of disk space available (32-bit) or 20 GB (64-bit)

    • Graphical device DirectX 9 with WDDM 1.0 or higher driver

    Run Windows Upgrade Advisor to see if there are known problems that might affect installation and if you need to install the 32-bit or the 64 bit version of Windows 7.
    http://Windows.Microsoft.com/UpgradeAdvisor

  • PHP - replace the slash (/) with hyphen (-)

    I started to replace the spaces, special characters, etc. with dashes. However, I can't find the proper way to replace a slash with a dash. I looked everywhere on the internet, some people, which suggests using the .htaccess file but I do not think that that suits my purpose. My code so far:

    Example: You have 1 new message (07/12/2016)

    I want to be: you-ve-got-1-new-message-12-07-2016

    <? PHP

    $message_original is $row_message ['title'];.

    $message_lower = strtolower ($message_original);

    $message_alpha = preg_replace ("/ [^ a - z0 - 9_\s-] /", "", $message_lower);

    $message_dash = preg_replace ("/ [\s-] + /","", $message_alpha ");

    $message = preg_replace ("/ [\s_] /", "-", $message_dash);

    ? >

    $string = "you have 1 new message------$! (12-07 - 2016) « ;

    $filtered = strtolower (preg_replace ('/ [\W\s\/] + / ', '-', $string));

    echo $filtered;  you-ve-Got-1-New-message-12-07-2016

    You can do it with the above simplified code. The regular expression "/ [\W\s\/] + / ' is a model group that contains three metacharacters:

    • \W matches any character that is not alphanumeric or underscore line (this is the same as [^ A-Za-z0-9_]).
    • \s matches any white space character.
    • ------/ corresponds to a forward slash.
  • The ipad pro supports multiple monitors with different content on each screen?

    I want to replace my laptop with an ipad pro.  Currently I drive three screens with my laptop, all with different content (VGA, HDMI, laptop screen) with no additional adapters.  The Ipad pro has a video card that will allow me to run multiple monitors (3 including the pro) with different content on each monitor?

    Given that the pro iPad running iOS and iOS do not supports multiple monitors, I would say no. I may be wrong, so feel free to correct me.

Maybe you are looking for

  • Received by MS but also by the VST program change?

    Hello I have patches in MS I want to choose with my external keyboard through program changes. These patches contain Sylenth1 VST. The problem is that when I send the program change, MS he will receive, but Sylenth1 will also receive it. MS will sele

  • upgarding memory from 4 GB to 8 GB

    Can I upgrade my MacBook Pro 13 "mid 2012 memory from 4 GB to 8 GB? How much can it cost to change? and there will be an increase in the speed of my mac after upgrading memory?

  • MacBook Air 11 "2012 won't start

    My MacBook has been in place and become Finder does not always whenever I try to watch my files. So I decided to restart and now it won't start, the startup would always freeze in the middle of the progress bar. I tried: Repair/check disk + permissio

  • USB 1074396024 error

    Hello, I have OR installed vision and IMAQ-USB installed. I'm using pinnacle 710-USB USB converter video. I can bring up soul and Auto Explorer and camera is listed. By setting the 352 x 240 29.97 FPS YUY2 video I can capture video throughout the day

  • I want to talk to someone about my missing live account is it possible?

    until 2 days ago, I had an account: * address email is removed from the privacy *, then he disappeared. the page told me to create a new account and they would check my answers to personal information to see if I was the owner of the ACTC. I did ever