Replace the comma between quotation MARK

Hello

Here, I want to replace the comma between CITATION to "#", but my boss does not work...

could someone help me please?

SELECT

REGEXP_REPLACE ("Mike" JOHN, KELLY "Marc")

"" [^,] * (EN) [^,] * "', ' #»(, 1, 1) AS A RESULT"

DOUBLE;

Maybe

Select ' Mike, Michel 'JOHN, KELLY' Marc' orig.

regexp_replace (' Mike, Michel 'JOHN KELLY' Marc', '"(\w+), (\w+)" ', '"\1#\2" ' ") new_val

of the double

ORIG NEW_VAL
Mike, 'JOHN KELLY' of Michel Marc Mike, Michel 'JOHN #KELLY' Marc

Concerning

Etbin

Tags: Database

Similar Questions

  • Chr (44) to replace the commas separating the arguments of a function?

    In Oracle SQL, it is possible to replace the commas between the arguments of the function with chr (44)?  A simple example with substr():

    substr ("yyyy", 1, 1) - the result is 'a '.

    vs

    substr ("aaaa" chr (44) 1 chr (44) 1)-this should also return 'a '.

    Is there a way to make the second example works the same way as the first?  I tried different techniques escaping, string concat, etc., and I failed.  Is there a method to replace the comma (",") the character of the way I'm looking for or is this impossible?

    Thank you

    N °

    The Analyzer seeks commas, not for other things you as a human being assimilated by a comma.

  • How to make a global search in messages between quotation marks?

    Using Thunderbird 24.4.0 on Ubuntu. Is it possible to do a global search in messages between quotation marks? I read https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/gloda, "whittlers Content" section. I consider this description it's a feature to exclude the content of the message in quotes of global search? Is there a way to enable global search in the quoted text?

    You know that a strip search via the quick filter bar or edit/search/search Messages include quoted text? Although it cannot be restricted to the text cited only.

  • replace the comma with point to a string

    Hello

    I tried to replace the comma in the chain attached to a point, but I can't make it work. What I am doing wrong?

    Calle cordially

    You have a space after the comma in your string constant.

  • Regular expression, replace all commas between double quotes ONLY

    Hello

    I want to remove all commas between double quotes:

    I tried under model, but it does not replace all if we have more than one comma in double quotes.

    SELECT REGEXP_REPLACE (123, "45.6" Hello, "John, Mike, Marc", 456, "-Anne, Anna"', ' "([^"]*),([^"]*)" ', '"\1;\2" ', 1, 0) suite

    FROM DUAL;

    Result

    --------------------------------------------------------------------------

    123, '45; 6"," Hello, "John, Mike;" "Marc", 456, "Anne-; Anna.

    the first comma between 'John, Mike; Marc"is not replaced...

    Recursion can do if you insist on the SQL solution

    with

    correct (INP, orig, CNT, res, Step) as

    (select str,

    substr(STR,2),

    -case when substr (str, 1, 1) = ""' then 1 else 0 end,

    substr (STR, 1, 1),

    1

    of (select 123, '45.6,' Hello, ' John, Mike, Marc ", 456, '-Anne, Anna', 'single_value' ' str of union double all the)

    Select "123456789" across double Union

    Select ' ""' of all the double union

    Select "" 123,456,789"" Union double all the

    Choose 123, '45.6,' Hello, ' John, Mike, Marc ", 456, 'Ann-Marie, Anna', 'unique value' ' double str

    )

    Union of all the

    Select the inp

    substr(orig,2),

    CNT + case when substr (orig, 1, 1) = ""' then 1 else 0 end,

    RES | cases where substr (orig, 1, 1) = ','

    so to case when mod(cnt,2) = 1

    then ' ~'

    else «»

    end

    of another substr (orig, 1, 1)

    end,

    Step + 1

    Rectifier

    where orig is not null

    )

    Select the inp, res

    Rectifier

    where the orig is null

    INP RES
    "" ""
    123456789 123456789
    "123456789". "123 ~ 456 ~ 789".
    123, '45.6' Hello, ' John, Mike, Marc ", 456, '-Anne, Anna', 'single_value '. "123," "45 ~ 6 ', Hello," John ~ Mike ~ Marc ", 456," Anne-~ Anna ',' single_value '.
    123, '45.6' Hello, ' John, Mike, Marc ", 456,"Ann-Marie, Anna","unique value ". "123," "45 ~ 6 ', Hello," John ~ Mike ~ ~ ~ Marc ', 456,' Anne-Marie ~ Anna "," unique value ".

    Concerning

    Etbin

  • Replace the comma with the liquid matrix code

    Hey people,

    I might not even wrong terminology, but I'm stumped on this question.

    I have a picture of an element of app web listbox that out puts the following liquid on the DETAILS page:

    "Fuel products': 'Diesel (high-speed), Premium ULP, ULP regularly."

    I am willing to spend the commas in the table with an icon of fonts, for example:

    < span class = "find the fa - fa" > < / span >

    I tried using the 'Replace' filter but it does not work. And I tried to use "capture", but there is clearly a funky coding that I completely missed. Help, please...

    {capture check %} < span class = "find the fa - fa" > < / span > {% endcapture}}

    {{it. ["Products of fuel"] | {{replace: ",", "{{tick}}"}}

    See you soon

    James - RelianceIT

    Hello

    Try {{this. [' Fuel products] | {{replace: "," check mark}}

    and let us know if it works.

    Thank you

    M

  • DRM function to replace the comma in a string

    Hello

    I'm new to the DRM. I have a requirement to replace insérent in a string with the semicolon (-). Is it all built in function to achieve.

    For example -.

    input string is s1, s2, s3

    Output string should be s1, s2, s3.

    I tried to use the ReplaceStr function. This works well for replacing any other, but for the comma, it does not work.

    Appreciate your help.

    It works for me with the formula below to do a global search of replacement that uses properties to store the string the comma (s) must withdraw and a global property to contain the decimal point itself:

    ReplaceStr (PropValue (Custom.String), (Custom.Comma) PropValue,, T)

    You've been do not add commas directly in the formula contained in the definition of the property you have? That would by way too many parameters in the function when the formula is analyzed for you would end up with something like ' DRM-25620: number of parameters for the function "ReplaceStr" invalid. " 4 expected, found 5. »

    Concerning

    Craig

  • I want to replace the code between 2 comments on a lot of files that just may not know to do.

    There is code between 2 comments I want to replace. For example <!-#header-CODE > <!-#/ header->

    The problem is that there are some differences in the code in each file. Its a header I wanted to change a html Web site, I thought that the best way would be to use the feature replace
    But each file is slightly different in the code. If it's just does not. All of the code between these two points must be changed for the same block of code.
    I tried to use regular expressions, I can't understand.
    I tried you/w/w, but it won't work.

    Why is there not an easier option. As <!-#header-> * <!--> #/ header and replace everything between the help file should have at least give an example of the various possibilities.

    Try

    ((\s|.) *?)

    Make sure the "Use regular expression" checkbox is checked.

  • replace the comma with point

    Hi all

    I am getteing mad with the following problem and need your help.
    I work in a PDF form - including a table. The values in this table create a datamatrix. It works fine for now.
    My question: the values in the array are numbers like 12.2 but also 12 or 9 but maximum two digits before the '. '. (dot). Separator character must be a '. '. In Germany there is the ',' (comma) instead of '. ' on the numeric keypad.
    For better usability, it would be nice to have a java script that replaces onBlur all ',' with a '. '. So I don't have to change the keyboard to English language.

    Is this possible and if so, how?

    I'm a noob absolutely on javascript, so please be patient and don't expect any specific knowledge.

    What I tried (menu is translatet from the German version, I don't know if this is correct):

    onBlur.replace (",",".");

    I put this in (right click on the form)-> properties-> action->

    Add the action: at the exit of the mouse

    Choose the action: run JavaScript

    Click 'Add '.

    Then I copied the terminus of the top in the window opening. Ready (at least that was my thought...)

    He said does not work, now I nedd your help.

    Thank you for your advice, your help and your time.

    Adobe Acrobat XI (in German) on Windows 7 64 bit (also German).

    ***************SOLVED**********************

    The solution was much easier than expected:

    When you open 'Properties' by right-clicking on the form, go to the 'validation', NOT 'action' (make sure you are in forms editing mode: 'tools'-> 'forms'-> 'edit')

    then choose 'execute user-defined script' and click 'change'.

    type the following line:

    Event.Value = event.value.replace (/ a, / g, ".");

    Click 'OK' and then 'close '.

    Then you are finished. Now, if you leave the Acrobat form field checks if there is a comma and replace it with a point.

    For me, it was the best way to make it work.

    ***************SOLVED**********************

    ***************GELÖST**********************

    Die Lösung war easier als gedacht.

    SMS "Akbulak" man mit einem Rechtsklick auf das Formular, muss man ",Validierung" und nicht 'Promotions' Park. (man muss im Formulareditierungsmodus breast: "Tools"-> "Von"-> "Bearbeiten")

    Dann unter "Benutzerdefiniertes Validierungsskript implement"auf"Berabeiten" klicken.

    IM Editorfenster following line typing:

    Event.Value = event.value.replace (/ a, / g, ".");

    Den zu über back 'OK' und 'Schließen' Akbulak

    War das Nun ersetzt Acrobat im Formularfeld jedes durch einen Punkt Komma.

    ***************GELÖST**********************

  • How to replace the hinges between the screen and the laptop base.

    Hello

    I have a HP G70 - 460 book note we

    Windows Vista

    Laptop product hp G70-460 us

    S/N: {deleted private information}

    P/N: NW168 AU #ABA

    I would like to know how can I access hinges without disconnecting the wires by mistake.

    Is there a map or a video showing it? I need to replace the hinges.

    Thank you

    Hello

    Page 4-20 of the following guide will show you how:

    http://www.HP.com/CTG/manual/c01573159.PDF

    Concerning

  • Replace the comma with a period in a text layer expression

    Hello!

    I need to make a simple counter to 0 billion, so I found this expression that works perfectly:

    Start code

    startTime = 0; seconds

    endTime = 5; seconds

    beginCount = 0;

    endCount = 9700698977;

    hasCommas = true;

    function addCommas (s) {}

    If (s.length < = 3)

    return s;

    on the other

    Return s.substring (0, 3) + ', ' + addCommas (s.substring (3, s.length));

    }

    function reverse (s) {}

    newStr = "";

    for (i = s.length - 1; i > = 0; i--)

    newStr += s.charAt (i)

    return newStr;

    }

    Val = Math.round (linear (time, startTime, endTime, beginCount, endCount));

    If (hasCommas)

    reverse (addCommas (reverse (val + "")))

    on the other

    Val

    end of the code

    The problem is that I need to change the commas with pins to look like 9.700.698.977, someone knows how to do?

    Just change this line:

    Return s.substring (0, 3) + ', ' + addCommas (s.substring (3, s.length));

    to do this:

    Return s.substring (0, 3) + '. ' + addCommas (s.substring (3, s.length));

    Dan

  • 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 
    
  • Replace the comma with | in a column

    Hi all

    My requirement is like this:
    In a column, I need to replace every third comma with | symbol.
     
    eg:
    1,Animesh,1234,2,Tripathi,4321,3,Oracle,2345.....(and so on)
     
    Desired output:
    1,Animesh,1234||2,Tripathi,4321||3,Oracle,2345....
    Please help me.
    -
    Concerning
    Animesh

    Hello

    Here's one way:

    WITH mydata AS
    (
       SELECT '1,Animesh,1234,2,Tripathi,4321,3,Oracle,2345' txt FROM DUAL
    )
    SELECT REGEXP_REPLACE (txt, '(([^,]*,){2}[^,]*)(,)', '\1||') txt
      FROM mydata;
    
    TXT
    ----------------------------------------------
    1,Animesh,1234||2,Tripathi,4321||3,Oracle,2345
    

    Kind regards.
    Al

    Published by: Alberto Faenza December 11, 2012 11:51
    Simplified regular expression

  • The use of quotation marks in the parameter variable data

    Hey, I have a question very confusing, I'm with headaches, already, hour I google itand nothing...

    Here it goes...

    1. I had a procedure that receives the ID setting

    2. then, I use it to make a few requests in other tables

    3. but, when I go to the query in the data element of this ID, it returns me a large amount of data which are not of this ID.

    I've done some tests and I realize that when I do this:

    DECLARE
    V_ID VARCHAR2 (200): = 35100345580693000762550010000276180000407450;

    BEGIN

    FOR RS TO (SELECT * FROM TABLENAME TN WHERE TN.ID = V_ID) LOOP
    INSERT INTO A1 VALUES (RS. PROD_COD, RS. (UN);
    END LOOP;
    COMMIT;

    END;

    She sends me all THE IDs!

    But when I put quotes in the value, like that!

    DECLARE
    V_ID VARCHAR2 (200): = '35100345580693000762550010000276180000407450';

    BEGIN

    FOR RS TO (SELECT * FROM TABLENAME TN WHERE TN.ID = V_ID) LOOP
    INSERT INTO A1 VALUES (RS. PROD_COD, RS. (UN);
    END LOOP;
    COMMIT;

    END;

    It returns the correct lines, but there is a problem, the ID will come from setting, so how can I solve this?


    To be more precise, the type of the ID column is VARCHAR2 (50), maybe this might help...

    Published by: Nylson on 27/04/2010 03:51

    T it?

    I already showed above that pass the parameter a string, it does so without rounding, but passes the parameter a large number which must be converted to a string first, you're going to get some flare at 38 s.f. going on.

    You need to make sure you pass a string in your procedure, rather than a number, if you want to get your code transmitted intact. It is the only way to avoid the implicit flare.

    Otherwise, could you relook at your application design - why you store these large ID in the first place? If it is a concatenation of several things, why not just break down the numbers and add them in separate columns?

  • Reg: Replace the comma with newline

    Hi Experts,

    I am a little confused and stuck with this... Tried many things but not able to do it properly.
    Any help is appreciated... TIA.
    -- "Input"
    with xx as(
        select 'x,a,(b,c),(d,e),f,g' x
        from dual
    )
    select * from xx;
    
    -- "Expected Output"
    x
    a
    (b,c)
    (d,e)
    f
    g
    Database version: Oracle 10.2

    Vanessa B.

    I gave you this already above.

    with xx as(
        select 'x,a,(b,c),(d,e),f,g' x
        from dual
    )
    , xxx as (
     select
       regexp_replace(x, '(\([^,]+),([^,]+\))', '\1'||chr(1)||'\2') x
     from xx
    )
    
    select
     replace (
       regexp_replace(x, ',', chr(10))
      ,chr(1)
      , ','
     ) x
    from xxx
    

Maybe you are looking for

  • Why does a file of type ._filename appear on television, but not on Mac

    Why do a. _filename.jpg file appears on television, but not on Mac? When I use a USB "thumb DRIVE" on my TV to show the photos as the slides a bunch of files with the prefix ".» _"appears, and should be deleted until I can show the real slides. Where

  • phone unlocked even after factory reset?

    I am moving to a new iphone and sell my old, I'll do a factory reset to clear all of my information from my old 5 c which has been unlocked by my EA service provider, this phone will always be unlocked after the reset?

  • Satellite A300 - 1 9: anoying noise usign stereo 50 Hz and AC adapter

    Dear Sir I connect my laptop on stereo equipment using the output of the computer.Everything works fine when the laptop is powered by the internal battery. When my laptop works on sector (220 volts) using the standard power adapter, there is a 50 Hz

  • cRIO-9022 puerto RS232

    Hola, deseo saber if examples are para the closing of datos desde el puerto RS232 as el sistema Compact-RIO offers. MI purpose are control UN recirculado por medio este puerto (I have configurado el sistema CompactRIO y works well with the closing of

  • Initial ink for Photosmart 5512

    I bought an unused demo missing ink. Is it safe to use ink on ordinary shelf for the first charge?