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

Tags: Database

Similar Questions

  • Advanced search and replace. How to replace the space with carriage return?

    10.9.13.0/24, 10.9.4.2/32, 10.9.4.3/32

    in

    10.9.13.0/24
    10.9.4.2/32
    10.9.4.3/32

    Find replace them ',' with carriage return.

    I still find articles on an advanced search and replace, but I can't seem to locate it.

    OS X El Capitan 10.11.3

    3.6.1 the numbers

    HI Brendan,

    You don't need an advanced find and replace for it.

    In the search box, press, then space.

    In the box replace by, press option-return.

    Then click Find and replace and find until you are finished.

    Kind regards

    Barry

  • 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.

  • 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

  • find the percent with grep sign

    Hello. I know it must be simple, but I can't seem to find it: how to find the percent with grep sign? Or % or -% nor [%] seem to do.

    Thank you

    There is nothing in particular the % sign: you should be able to find it by using one of the three methods you have tried. Have a good overview of the control panel search/replace. Don't find it what domain contain only the %? No space lurking here? It is on a locked layer? You have a style of paragraph or character set in the Panel "Find format '?

    Peter

  • 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.
  • Can satellite M70-159 - I replace the motherboard with another?

    Hello!
    The model of the M70-159-card mother K000033840 can replace another motherboard with a number K000033860?

    Thank you.

    I put t know if it s possible because I m not a technician for laptop.
    Normally, you should only replace the motherboard with the same.

    I put t know if it works. Contact a local ASP and ask for a technician. They know where the other is, and if it would work.

  • Please replace the battery with the correct lenovo battery

    I have a Thinkpad L530 and bought a new battery and when I start it up I get this message (this battery installed is not supported by this system and will not charge.) Please replace the battery with the battery correct lenovo for this system

    buy a real battery. Press ESC to continue but the battery won't charge)

    I don't want to buy a new battery to another.

    I understand that this can be changed in the bios but don't know how.

    Now my battery is dead, and I'm unable to recharge it again.

    Ideas please


  • Replace the hyphen with line break

    Hello
    In my application, I want to replace the hyphen with line break
    . I use APEX4.0
    I use the following javascript code:

    < html >
    < script type = "text/javascript" >
    function test().
    {
    var visitorName = "< br / > ';
    var myOldString = "& P2_SI.";
    var myNewString = myOldString.replace (/-/ g, visitorName);
    }
    < /script >
    < / html >

    I have no idea how the get executed and make javascript work... can anyone help?

    Suzi,

    I changed the code for page 1:
    I don't know that is what you want, but it works :)
    That's what I did

    1. deleted tags
    2 P1_RESULTS element created to keep results
    3. $x_Value ("P1_RESULTS", myNewString) occasion; to fill a new element

    You cannot set the value P1_S2I in dynamic Action (onchange) - it looks like the code calls herself and kills the browser

    Lev

    Published by: the on August 27, 2010 11:49

    Published by: the on August 27, 2010 11:53

  • replace the characters with accent with their basic letter

    Hello

    I need to replace the characters with an accent with their basic letter

    a = > has
    n = > n

    I use classes of equivalence as [[= n =]] in regexp_replace, but then I need to call it for each letter. Is there a simpler way?

    Concerning
    Marcus

    Given that I only have the names to convert INITCAP

    It seems that you can use the binary case-insensitive or accent sorting to get the results you want so:

    SQL> with t as (
     select 'ñÉäßÑéàâ' str from dual
    )
    --
    --
    select str, utl_raw.cast_to_varchar2((nlssort(str, 'nls_sort=binary_ai'))) str2 from t
    /
    STR      STR2
    -------- ---------------
    ñÉäßÑéàâ neassneaa
    1 row selected.
    
  • Replacement of the space with joker

    I have a table with names as follows-

    () AS T

    SELECT THE NAME OF "JOHN M SMITH" DOUBLE

    UNION

    SELECT "ANDREW SMITH" DOUBLE

    UNION

    SELECT "A CARREY AND MIKE M N SMITH" DOUBLE)

    SELECT * FROM T

    My requirement is that if the name is a single character, then attach a joker with it, if it's more than a single space character, and then attach a single space followed by a wildcard character, so the final result should be like this: -.

    JOHN M % SMITH

    % OF ANDREW SMITH

    CARREY-MIKE % M % N % SMITH

    probably, it will be done with regular expressions, but don't know how.

    Thanks in advance

    Hello

    Here's one way:

    SELECT name

    , REGEXP_REPLACE (REPLACE (name, ' % ',' '))

    , '((^| ) [[: alpha :]])]] %'

    , '\1%'

    ) AS wild_name

    T

    ;

    Output:

    NAME WILD_NAME
    --------------------------- ------------------------------------
    A CARREY AND MIKE M N SMITH CARREY MIKE % M % N % SMITH
    ANDREW SMITH ANDREW SMITH %
    JOHN M % M % SMITH JOHN SMITH

    Here's how it works:

    REPLACE replaces all space space generic space.  It's almost what you want: the only problem is that, immediately after a single letter word, you want generic-space instead of space-credits-space.  REGEXP_REPLACE finds all occurrences of SingleLetterWord-the space-credits and modifies them to SingleLetterWord-wildcard.

  • 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 
    
  • 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.

  • HP 15-AC143WM: replace the DVD with SSD drive

    Hello

    I would like to remove my laptop DVD drive and replace it with an SSD. Is it possible to connect a laptop SATA drive this in any case and if so, how?

    my laptop HP 15-AC143WM

    Any help appreciated,

    Thank you

    REDA

    raj98207

    After looking through the maintenance and Service of Guide for your PC, I have to say Yes... but...

    Here is the link so you can read it for yourself: http://h10032.www1.hp.com/ctg/Manual/c04653884

    As I see it, there are three issues: space, connector, fixed support.

    It seems that a hard drive from a laptop computer could insert in the space left by the optical drive, it is so probably not a problem.

    It there is no second set of connectors of SATA HDD, but since the DVD player doesn't use the same connectors as a hard drive, you can use those-, given that those who are not designed to be used for a hard drive, they will fit, but they may not work.

    The biggest problem is the lack of a fixed support for the hard disk.  The optical drive is designed to exactly fit the space and is held firmly in place with a screw in the case of the laptop.  There is no support for the holding of a hard drive in this space and most likely, no way to attach it to the case.  You don't want a hard drive slide in the optical drive bay, then for me, it would be a show-stopper.  If you were willing to consider a SSD instead, this wouldn't be a problem.

    And finally, and above all, it is my view of your personal situation. I does NOT represent or speak for-HP, so if you want to do this as an experiment, you're on your own - any damage resulting will void any warranty you have and you'll be on the hook to fix at your own expense.

    Good luck
    ========================================================================
    I'm a volunteer and I do not work for, or represent, HP.
    ---------------------------------------------------------------
    If my post helped you, please click on the Thumbs-Up symbol on my post to say thank you.
    If my posts resolved your issue please click "accept as a Solution.
    ========================================================================

  • E5-432: replace the HDD with SDS

    I of the E5 Aspire-432, that come stock with a 500 GB HDD, I would like to exchange for a SDS in the future. I found not yet no info via Google or this forum.

    Anyone has any info on this? Is there an available maintenance manual detailing how to replace the HARD drive in the e5-432?

    Would be-I just need to clone the HDD to the SDS, the Exchange and start?

    Thanks for any info

    UPDATE: I just did the swap HDD/SDD in the Aspire E5-432. It is very easy to do.

    It starts now less than 15 seconds. Much snappier.

    Prepare the SDS:

    1 installation Drive Clone or as software

    2 connect the SDS, via USB and to clone the HDD to SDS - cloning took about 1 1/2 hours with a USB2 cable

    Note: leaving the size of the partition that DriveClone wouldn not (not enough message space), I reduced the main partition of about 400 MB and everything went well

    Remove the HARD drive:

    1. power off the laptop, remove all the screws from the bottom and crack open

    2. a screw holds the HARD drive in case tray, remove

    3. a screw holds the USB/audio jack PCB, remove it

    4. on the audio jack USB PCB, lift the lever to release for USB/audio cable

    5. on the motherboard, raise the white lever for USB/audio cable that is stuck on the plateau of HARD drive

    6. remove the taking USB/audio PCB and right speaker held in place with eyelets pink silicone

    7. slide the HARD drive to the right tray, can he get out of it

    8. remove the 2 screws from the HARD drive tray

    9 FLEX tray by pressing the top middle holding the sides, push the HARD drive from the open side. Trying to force the HARD drive does not work out with tools

    Do the reverse steps to put SDS in, reboot, enjoy!

    Worth it!

Maybe you are looking for