Replace specif character with other chracter before or after ','

a:='(a,c,dklcm,c,npc,c)'
(a,c,dklcm,c,npc,c) these is a string value i can't change within these
how will i replace specific chracter like c with other character
keeping in mind that 'c' will between ',' and ',' and
at the end before ')'.If c is not present at the end then it will be
kept intact.

SQL> select '(''a'',null,''dklnullm'',null,''npnull'',null)' ORIGINAL_VALUE from dual;
ORIGINAL_VALUE
('a',null,'dklnullm',null,'npnull',null)
SQL> SELECT REPLACE(REPLACE(REPLACE(REPLACE(REPLACE('(''a'',null,''dklnullm'',null,''npnull'',null)',',null,','~'),'null)','^'),'null',''''''),'~',',null,'),'^','null)') REPLACED_VALUE FROM DUAL;
REPLACED_VALUE
('a',null,'dkl''m',null,'np''',null)

Similar Messages

  • How to replace the '&' character with '&' in xi

    Hi,
    i need to replace the '&' character with ' &'.but i f i am converting it is displaying as '&' because internally '&' = '&'.
    beacuse of this it is not converting.
    is there any possiblity to change the  standard conversion in xi.

    Graphical mapping does not support special character like & , <,> to be mapped.
    You can encode & as and in UTF-8 only.
    if you want the special character to be used, Opt XSLT mapping with ISO-8859-1 encoding
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="ISO-8859-1"/>
    <xsl:template match="/">
    <xsl:copy-of select="*" />
    </xsl:template>
    </xsl:stylesheet>
    How to Work with Character Encodings in Process Integration (NW7.0)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • Replacing Window Title with other value

    Hi to everyone
    Can anyone tell me how can I replace the window title with other values...for example with active record...mean client name should appear instead of window title.
    Thanks in advance

    Here is the code I use from a simple form. You can see it handles three separate environments, Client/Server, Web separate frame, and Web inside browser window.
    I like to remove the "Oracle Forms Runtime" from the main window, only in Client/Server, you cannot remove the brackets. So you are left with - [ Your Title ]Here is the code. It can be put into either the Pre-Form or When-New-Form-Instance trigger. But note that once you do this, EVERY form must set its title, or the one you set last will show up on all your subsequent forms:
        DECLARE
          WINDOW_ID        WINDOW := FIND_WINDOW('WINDOW0');
          WTitle           Varchar2(100) := 'My Test Form';
        BEGIN
          Set_Window_Property(Window_Id,Window_State,Maximize);
          If Get_Application_Property(User_Interface) = 'WEB' then
            --Web forms:  set MDI title, erase W0 title.
            Set_Window_Property(Window_Id,Title,' ');
            Set_Window_Property(Forms_MDI_Window,Title,' ' || WTitle);
            --- Check if running SeparateFrame=False (form within browser)
            If get_window_property(forms_mdi_window,title) is null then
              --SeparateFrame=False:  running inside browser window.
              --Cannot set browser title; need to set Window0 title
              Set_Window_Property(Window_Id,Title,' ' || WTitle);
            end if;
          Else -- client/server forms
            Set_Window_Property(Forms_MDI_Window,Title,' ');
            Set_Window_Property(Window_Id,Title,' '||WTitle||' ');
          End if;
        END;

  • Can I have pages automatically replace specific words with the same word in a different font as I type?

    In MS Word I was able to set it up so any time I typed the name of the organization I run, Camp Aldersgate, it would automatically change the font to our branded font from our logo.  The font appears in the font list, and I can select it and use it.  How do I do the same thing in Pages?

    You can create a character style with the specific font. Custom styles are only document specific so save a documnet as a tempalte containing this style. Use this template when you need this style.
    When you have written you document use Find and replace > Advanced > write the word to find and write it again in the replace field but change the Style button option to the new specific style > press replace

  • JS: Finding & replacing a character with a certain para style

    I'm scripting an automated indd -> PDF project and I need to minimise the user input.
    To this end, I want to search and replace commas in a particular cell of a table (which are the only instances of a particular para style), and replace them with forced line breaks.
    The script I have for another part of the XML import looks like this:
    //Search the document for the umlauts and replaces them with macrons. I
    app.findTextPreferences.findWhat = "Ï";
    app.changeTextPreferences.changeTo = "Ī";
    myDocument.changeText();
    What do I add to a similar script to make it target only content whish has a particular para style? And will it be compatible with CS4, 5 and 5.5, i.e. be agnostic to nested styles etc?
    Thanks in advance,
    Simon.

    Use app.findTextPreferences.appliedParagraphStyle:
    app.findTextPreferences.appliedParagraphStyle = "my_style";
    .. your snippet here ..
    I bet there is a reset somewhere above your snippet:
    app.findTextPreferences = null;
    app.changeTextPreferences = null;
    and it would be safest to insert this as well below your code, or else this particular setting will "stick" and also be applied to following replaces.
    This command is virtually unchanged since CS3, CS4? So far it seems to work in every version since then. But either way it's inconsequential to your nested styles, as these can only be character styles.

  • Universally replace one character with another and then change font

    Hello,
    I have a geologic map file where there are hundreds of labels like Cc, Cz, Cwu, etc... all in the Arial font. I need to change all of the capital C's with a character from the StratagemAge font. That is to say, I need to find all instances of one character in my file and then replace them with another character and then change the font of that selected character.
    I've been trying to figure out how to write an action to do this, but I was wondering if there is a way to do this easily already.
    Any suggestions?
    Jeremy

    > how do you turn off the dialog for the Find/Replace in action palette?
    At the left of each Action step is a square field. Mouse over it and the tooltip will read "Toggle Dialog On/Off".
    > I got an action that I wrote to work, but it takes a button click for each instance in my file that I want to change. Would yours have that same drawback as that?
    Yes, you would have to click each time to run the Action (or, you could assign a function key), but there would be no dialog to dismiss.
    But you can pile several iterations of the same steps in the Action; so that one execution of the Action does ten replacements with one click, for example.
    This would not be a particularly difficult thing to Javascript, but you are correct that scripting has a learning curve. This task is not something I would think often needed. Doing a few hundred replacements in a file, using an Action would not seem overly burdensome to me. But if it is a recurring need for you, it might be worth writing a script.
    JET

  • Replace A Character With Another Character

    Can anyone help me with code to replace "." with a "-", within a string of numbers?
    ie. Change "401.001" to "401-001"
    I am using Adobe Acrobat 6.0 Professional
    Thanks

    Is the text in the body of the document or inside form fields?

  • Can you share specific apps with other devices under same Apple ID?  ...or do you need to enable he sharing of all apps that have been downloaded under that ID?

    My family has multiple devices under one apple ID.  I want to share only certain apps with certain family members.  Is it possible to limit what apps are shared with which devices or do I need to share all of the apps that I download for personal use?

    Thanks.  I turned off the automatic downloads on the new devices (minis), but when I go into the app store I don't see any of the apps I have bought (for my original iPad) under "purchased".  I was thinking that this was the logical place to find those apps that I want to download to the new devices.  What am aI missing?

  • Sharing A Specific Database With Others On Domain

    Hello,
    Its my very first experience with SQL and on the forum so kindly treat me as a novice. I had been maintaining a database on Access 2013 for a very long time but now that the data is giganitc (for me at least) and I am afraid for not losing the same and because
    of slow processing of queries I had the SQL Server 2014 (Microsoft SQL Server Management Studio 12.0.2000.8) installed.
    I myself am a user of a domain, but the Microsoft SQL Server Management Studio is installed on my local computer.
    The SQL Connects to the Server Name: [.\SQLExpress]
    Windows Authentication mode is being used by me.
    With a research upon ODBC Concepts carried out on the net, I was successful in having a new front-end Access application be made, and links to tables in the
    SQL Database named for example MyAdventures established in read-write mode.
    Now, I want to have a similar Split-Type Database Front-ends be made on Access and be distributed to only a few users on the same domain using Access (versions 2007 or later), with only a read-only access, by having them also be identified on Windows Authentication
    or LogIn.
    If possible. How to do so?
    Please see if you can provide a step-wise procedure.
    Thanks.

    Hello Faraz,
    Yes, that's possible. First you have to enable remote Access, see
    http://blogs.msdn.com/b/walzenbach/archive/2010/04/14/how-to-enable-remote-connections-in-sql-server-2008.aspx
    Then you have to add the Logins of the other users to SQL Server security + as database users, as it's best with adding them to the Default database role "db_datareader" to grant read only Access; see
    Create a Login and
    Create a Database User
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Send email with column values before and after change with workflow

    I am trying to send an email to specified users when a column in a list changes in MOSS 2007 with workflow. I have a comments column in a list and whenever any user updates that comment, a mail should go to the creator and specific group stating what has
    changed.
    I saw a response which states to create 2 lists and keep them in sync and compare values of comments from the two lists. But that is not a perfect solution.
    Please help. Thanks in advance.

    Hi,
    If we want to compare a column with itself, we need the help of another column. We can create a column in the same list
    named Comment2 for example, and it’s the backup copy of
    comments.
    The workflow conditions can be set that if
    comments not equal Comment2, in Actions set send an email (we can get the previous value in
    Comment2 and new value in comments), and then update the
    Comment2 to comments.
    Thanks,
    Emir

  • Text file - replace a pattern with part of the previous line? -SOLVED

    Hello, I'm stuck with sed/awk/grep...
    So I have a file with lines like this:
    Nice bunch of words <STUFF> <STUFF> <IMPORTANT_DELIMITER_TYPE_1> <STUFF> <IMPORTANT_DELIMITER_TYPE_2> <STUFF>
    Even Nicer bunch of Words <STUFF> <IMPORTANT_DELIMITER_TYPE_1> <STUFF> <STUFF> <STUFF>
    Wonderful bunch of Words <STUFF> <STUFF> <STUFF><IMPORTANT_DELIMITER_TYPE_1><STUFF>
    Then, I want to move the "important delimiters" to new lines (might be better not to do this in fact...)
    Nice bunch of words <STUFF> <STUFF>
    <IMPORTANT_DELIMITER_TYPE_1> <STUFF>
    <IMPORTANT_DELIMITER_TYPE_2> <STUFF>
    Even Nicer bunch of Words <STUFF>
    <IMPORTANT_DELIMITER_TYPE_1> <STUFF> <STUFF> <STUFF>
    Wonderful bunch of Words <STUFF> <STUFF> <STUFF>
    <IMPORTANT_DELIMITER_TYPE_1><STUFF>
    And finally, I want to replace the important delimiters with the content of the line they came from originally, up to the first angle bracket:
    Nice bunch of words <STUFF> <STUFF>
    Nice bunch of words <STUFF>
    Nice bunch of words <STUFF>
    Even Nicer bunch of Words <STUFF>
    Even Nicer bunch of Words <STUFF> <STUFF> <STUFF>
    Wonderful bunch of Words <STUFF> <STUFF> <STUFF>
    Wonderful bunch of Words<STUFF>
    How can I accomplish this using absolutely anything at all that doesn't involve too much manual effort (the file is about 30,000 lines of this stuff)
    Thanks !
    Last edited by darkbeanies (2013-09-01 19:18:29)

    "<STUFF>" is not irrelevant. In your original example
    Nice bunch of words <STUFF> <STUFF> <IMPORTANT_DELIMITER_TYPE_1> <STUFF> <IMPORTANT_DELIMITER_TYPE_2> <STUFF>
    Even Nicer bunch of Words <STUFF> <IMPORTANT_DELIMITER_TYPE_1> <STUFF> <STUFF> <STUFF>
    Wonderful bunch of Words <STUFF> <STUFF> <STUFF><IMPORTANT_DELIMITER_TYPE_1><STUFF>
    you want to break the lines along the delimiters:
    Nice bunch of words <STUFF> <STUFF>
    <IMPORTANT_DELIMITER_TYPE_1> <STUFF>
    <IMPORTANT_DELIMITER_TYPE_2> <STUFF>
    Even Nicer bunch of Words <STUFF>
    <IMPORTANT_DELIMITER_TYPE_1> <STUFF> <STUFF> <STUFF>
    Wonderful bunch of Words <STUFF> <STUFF> <STUFF>
    <IMPORTANT_DELIMITER_TYPE_1><STUFF>
    and then you say that you want to replace the delimiters with the contents before the first angle bracket:
    Nice bunch of words <STUFF> <STUFF>
    Nice bunch of words <STUFF>
    Nice bunch of words <STUFF>
    Even Nicer bunch of Words <STUFF>
    Even Nicer bunch of Words <STUFF> <STUFF> <STUFF>
    Wonderful bunch of Words <STUFF> <STUFF> <STUFF>
    Wonderful bunch of Words<STUFF>
    but you have clearly made a distinction between the "nice bunch of words" and "<STUFF>", otherwise the output would have been
    Nice bunch of words <STUFF> <STUFF>
    Nice bunch of words <STUFF> <STUFF> <STUFF>
    So, do you want everything up to  the first delimiter, or do you want everything up to <STUFF> in the replacement? If you only want the "nicer words" then you need some way to distinguish between them and "stuff" programmatically.
    edit
    Here's a trivial script that will split the lines along the delimiters and replace them with the contents of the line before the first delimiter:
    #!/usr/bin/env python3
    import re
    import sys
    def main(args=None):
    for line in sys.stdin:
    # Trim trailing newline.
    line = line.rstrip('\n')
    # Split by delimiters.
    parts = re.split(r'<[^>]+>', line)
    print(parts[0])
    for p in parts[1:]:
    print(parts[0] + p)
    if __name__ == '__main__':
    try:
    main()
    except (KeyboardInterrupt, BrokenPipeError):
    pass
    Usage
    path/to/script < /path/to/input file
    Last edited by Xyne (2013-09-01 18:34:55)

  • Replace a character in a String array

    I have an array of strings and am trying to replace the ' character with a space. I keep getting either a cannot be applied or cannot resolve symbol error. Can anyone help?
    String arrayList = request.getParameter("field");
    String newList = arrayList.replace("\'", " ");

    the replace method of the String class takes two parameters and both of them are characters not strings use it like this
    arrayList.replace('\'', ' ');that should fix it

  • Replacing a character in a String

    Hi All,
    How can I replace a character ' which appears in a String into \'

    There is a method in String that replaces all
    occurrences of one character with anothercharacter.
    It's called, hold your breath now, "replace".But tho OP wants to replace one character with two
    characters :)You're right, I missed that. Well, serves me right for being sarcastic. :-)

  • Replacing a char with string in a string buffer.

    Hi all,
    I have a huge xml file. Need to search for the following characters: ^ & | \ and replace each character with \T\ \F\ \B\ \C\ respectively.
    i.e. ^ must be replaced with \T\
    & must be replaced with \F\
    I see that it can be done in case of String using replaceAll() but have no clue about achieving using the stringbuffer??
    Any help is higly appeciated.
    Thanks in advance.

    Hi all,
    I have a huge xml file. Need to search for the
    following characters: ^ & | \ and replace each
    character with \T\ \F\ \B\ \C\ respectively.
    i.e. ^ must be replaced with \T\
    & must be replaced with \F\
    I see that it can be done in case of String using
    replaceAll() but have no clue about achieving using
    the stringbuffer??
    Any help is higly appeciated.
    Thanks in advance.here the solution for your problem:
    example code as follows,
         StringBuffer stringBuffer = new StringBuffer("your xml content");           
                String xmlString = stringBuffer.toString();
                char[]  xmlCharArray =  new char[];
                xmlString.getChars(0, xmlString.length()-1, xmlCharArray, 0);
               StringBuffer alteredXmlBuf = new StringBuffer();
                for(int i=0; i<xmlCharArray.length; i++){
                               if( xmlCharArray[i] == '^'){
                                      alteredXmlBuf.append(" \\T\\") ;
                               }else if(xmlCharArray[i] == '&'){
                                      alteredXmlBuf.append(" \\F\\") ;
                               }else if(xmlCharArray[i] == '|'){
                                      alteredXmlBuf.append(" \\B\\") ;
                               }else if(xmlCharArray[i] == '\'){
                                      alteredXmlBuf.append(" \\C\\") ;
                               }else {
                                       alteredXmlBuf.append(xmlCharArray);
    now alteredXmlBuf StringBuffer object contains your solution.

  • What do I do if imported AAC files wont copy onto my iPhone? It has worked in the past with other imported files of the same type.

    I have tried multiple times to sync a bunch of RHCP songs that i imported, but they wont copy onto my iPhone. I have tried isolating them in a playlist and syncing just that playlist and still nothing. please help. I have done this with other songs before and it worked fine but for some reason these ones wont copy.

    I suggest taking it back to Best Buy. Once it has been opened, Apple will not handle the phone. Best Buy or another 3rd party are your only choices. Best Buy probably made an error when replacing the screen. Understand they are not an authorized Apple Service Center.

Maybe you are looking for