How to remove special symbols in a string?

Hi all

Oracle version: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

Sample data:

I saw the email like this: "prathck" [email protected]".

When I try to remove this single quote m do it in error.

Select regexp_replace ([email protected] 'pradeep'',' (* [[: punct:]])', ") as the double Email

Expected results:

E-mail

prathck [email protected]

Thank you

Pradeep D.

Try to set the value of ' prathck' [email protected]' as a parameter in the bind request.

Or replace the apostrophe in the value chain by 2 apostrophes;

Oracle/PLSQL: Dealing with quotation marks simple/apostrophes in chains

select regexp_replace('pradeep''[email protected]', '( *[[:punct:]])', '') as Email from dual

Tags: Database

Similar Questions

  • How to remove special characters from the string using translate() without typing all special characters?

    Hi all

    I am trying to remove special characters without the help of regular expressions.

    translate (the column name or string,'!@#$ & * (* () _) * "" :} {?}) >? /, «, » ')

    I want to eliminate this manual process to give all special characters using a chr() or ascii() function.

    Please show me the way.

    Thanks in advance

    Similar to the solution of Michael...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, i like (select level 1 c from dual connect by level<=>
    3 less
    4 Select + 32 (level-1) double connect by level<=>
    5 less
    6 select + 58 (level-1) double connect by level<=>
    7 less
    8 select + 91 (level-1) double connect by level<=>
    9 less
    10. Select 123 + (level-1) from dual connect by level<=>
    11 less
    12. Select 255 double
    13            )
    14, ts as (select level r, substr (str, level 1) c
    15 t
    16 connect by level<=>
    17             )
    18, tf as (select row_number() (order for r) r
    19                    ,ts.c
    20 TS
    21 I join on (i.c = ascii (ts.c))
    22             )
    23 select replace (sys_connect_by_path(c,'!'),'! ') Str
    24 TF
    25 where connect_by_isleaf = 1
    26 connect r = prior r + 1
    27 * start with r = 1
    SQL > /.

    STR
    -----------------------------------------------------------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

    Or something as horrible as this...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select "[it comes of the #] [more amazing!") Test @# "$* & $%) assuming chain cost $ 5 000' double Str)
    2, I like (select replace (sys_connect_by_path (chr (c), 'A'), 'A') as tr)
    3 of)
    4 select c, rownum r
    5 (select 32 + (level-1) as the double connection by level c<=>
    6                         union
    7 select + 58 (level-1) double connect by level<=>
    8                         union
    9 select + 91 (level-1) double connect by level<=>
    10 the union
    11. Select 123 + (level-1) from dual connect by level<=>
    12 union
    13. Select 255 double
    14 tri 1
    15                        )
    16                  )
    17 where connect_by_isleaf = 1
    18 log r = prior r + 1
    19 start with r = 1
    20            )
    21 select translate (str, 'A' |) TR, 'A') as str
    22 * t, I
    SQL > /.

    STR
    --------------------------------------------------------------------
    Thisisthemostamazingtest¸astringcosting5000

  • How to remove special characters that are not available in the key board

    Hi all
    How to remove special characters that are not available in the key board.
    select '106    ©      500049' str from dual;
    
    After removal of the special symbols ( not only copy right, it can be any special symbol other than key board symbols), I want to add a single space between two number.
    
    Output should be like:
    Str
    106 500049
    Thank you for your help in advance.
    select
     '106    © ® (k)      500049' str
    ,regexp_replace('106    © ® (k)     500049', '[^[:digit:]]+', ' ') r
    from dual
    
  • How to insert special symbols (glyphs) in PS CS5 Mac OSX

    Hello

    I have a font type that contains a special symbol.  Does anyone know how insert special symbols (called "glyphs" in Adobe Illustrator) in Photoshop CS5?  On Windows, I read the performance charmap.exe, I tried and worked.  I would like to know how to do on the Mac platform.

    Thank you

    Gustavo

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

    OWL of the Design Studios

    Santa Fe, NM

    owldesignstudios.com

    You can set the type in Illustrator and copy of Photoshop.

    You can also use the freeware/shareware like PopChar on Mac.

  • How to remove the symbol of a note

    If I placed a symbol in a note on the score, for example a symbol staccato or legato, how can I remove it much later, once the cancellation is no longer a realistic option? I tried selecting the symbol staccato in the box part and then using the gum, and which erases the note instead.

    If it is a project of FCP X you can remove by overlaying a copy of the image that is not the symbol above one who does and using the draw mask

    Otherwise, see SliceX of Coremelt (solvent of the object).

    Russ

  • HP Officejet 4632: How to enter special symbols on jet Office 4632

    Try to configure the printer for a new wifi password that the % as one of the symbols. How can I enter to complete my installation?

    Welcome to the HP community @Marshliz,

    I understand you are trying to enter a special character in your wifi password to connect your HP Officejet 4632. I'll be happy to help you.

    There are a few different options to connect your printer to a wireless network. If you use the Setup Wizard from the control panel wireless, there is a virtual keyboard that appears on the screen and you may have to navigate through the different menus for the lowercase, uppercase letters and symbols. Below, I've posted a link to a document that has some instructions on how to configure your wireless printer. Please try all the steps in order and get back to me with the results.
  • How to avoid special characters in the string box

    Hello

    is it possible that a special character can be avoided in a box of the string, as authorizing only a - z and 0-9 to enter a box in the chain

    Hi all

    Darin Laurette method is simple.

    AnkitG: You must change the code.

    Good learning for me.

    Kind regards

    Leila

    CLD

  • How to avoid special characters in a string

    Hai.

    I want only Alphabets & numbers to appear on my channel. No other special characters except spaces. How can I do this?

    Hi Alice,.

    See the attached example.

    It will be useful.

    Mike

  • How to remove special account Parental controls previously created in Vista

    Parental control forced me to set up a separate account. Now that I've removed the parental control, the account still exists. How can I delete the account set as well as parental control, as there is a slowdown and a sign of trouble for 2 other adults using this computer at home now, which did not exist before activating the parental control feature.

    Hello

    To delete an account in Vista, please follow the instructions below:

    (a) go to control panel

    (b) select user accounts, select the user again accounts

    (c), click on manage user accounts

    (d) highlight the account you want to delete, then click on remove.

    (e) click OK.

    I hope this helps.

     

  • How to remove duplicates from comma separated string


    Hi all

    I have an obligation to remove duplicates of string separated by commas:

    Some examples of code (real data can be in millions)

    {code}

    create table test_dup_del (num number (10), dup_val varchar2 (100));

    insert into test_dup_del values (1234, '1, 2, 3, 4, 3, 1');
    insert into test_dup_del values (4567,'1, 2, 2, 4, 4, 1');
    insert into test_dup_del values (7894,'1, 2, 1, 3, 3, 1');
    insert into test_dup_del values (1478, '1, 2, 4, 4, 3, 2');
    insert into test_dup_del values (2589, '1, 2, 1, 2, 1, 2');
    commit;

    (code}

    my output would be:

    1234, 1, 2, 3, 4'

    4567, '1, 2, 4'

    7894, '1, 2, 3'

    1478, 1, 2, 3, 4'

    2589, 1, 2'

    Thank you

    Rachid

    If there is a real need to split the data so that it could be corrected (before split to store correctly... Tip tip!) ...

    SQL > ed
    A written file afiedt.buf

    1 with test_dup_del (num, dup_val) as)
    2 Select 1234, 1, 2, 3, 4, 3, 1' Union double all the
    3 select 4567, 1, 2, 2, 4, 4, 1' Union double all the
    4 Select 7894, 1, 2, 1, 3, 3, 1' Union double all the
    5 Select 1478, 1, 2, 4, 4, 3, 2' of all the double union
    6 select 2589, 1, 2, 1, 2, 1, 2' of the double
    7      )
    8  --
    9. end of test data
    10-
    11, split as)
    12. Select num
    13, trim (regexp_substr(dup_val,'[^,]+',1,level)) as val
    14 from test_dup_del
    15 connect by num = num prior
    16 and level<=>
    17 and prior sys_guid() is not null
    18                )
    19, dist in (select distinct)
    20                      num
    21                      ,val
    22 split
    23              )
    24 select num
    25, listagg (val, ',') within the Group (order by val) as vals
    dist 26
    27 * group by num
    SQL > /.
    NUM OF VALS
    ---------- ------------------------------
    1234 1,2,3,4
    1478 1,2,3,4
    2589 1.2
    4567 1,2,4
    7894 1,2,3

    5 selected lines.

  • How to remove all symbols within a symbol on the stage?

    Hi all

    I have this code located on the close button click:

    var childSymbols = sym.getSymbol("mc_InnerStage").getChildSymbols ();

    Alert (childSymbols.Length);

    for (var i = 0; i < childSymbols.length; i ++) {}

    childSymbols [i] .deleteSymbol ();

    }

    SYM. Stop ("Start");

    which could remove all the symbols inside the symbol (mc_InnerStage), but it does not everyone knows what is wrong with this code? I had alerted the number of children, but it keep giving me 0 any number of symbols in the symbol of the mother there? ! can someone help me please?

    Thanks in advance.

    and I forgot to say that you can remove them by using this line:

    SYM. $(". Name of your class here"). remove();

    Zaxist

  • How to find special characters in a string of give/sentance

    Hi all

    I have a task to complete with the time to give. Because I'm not very good in PL/SQL, I need you're help.
    Condition is:

    I must come with the SQL or PL/SQL code which should return and find the hidden or special character in the name of the data files in a database. There are nearly 400 + database are present in almost any flavor of UNIX, and I need to check the database each.

    As you know, the name of the data file will be like this:
     /u02/instance_name\oradata\datafile_01.dbf 
    So, it should avoid these things and only discover the special characters in the name of the data file.
     
    a-z , A-Z , 0-9 and \ 
    Please keep in mind that... I'll be pulled the script Oracle the Oracle 9i client that will access all the databases of Oracle 9i to 11g in a short and give me the result.

    Please help me to solve this problem and let me know if you need more information.

    Hello

    Mukesh says:
    Hi Frank,.

    It is an excellent service. Thanks for you response.
    I want to change the query that... I should get only the name of these data files that are special characters of detention. I don't know how to put it in that condition. :(

    Here's one way:

    SELECT  file_name
    ,       ...     -- other expressions, if you want any
    FROM    dba_data_files
    WHERE   TRANSLATE ( file_name
                      , '?0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ\_/abcdefghijklmnopqrstuvwxyz'
                      , '?'
                      ) IS NOT NULL
    

    Among other expressions, you can put in the SELECT clause (if you wish) is a copy of the TRANSLATE function, you had in your message. That would underline exactly what characters rendering invalid file name.

  • How to remove a symbol without clicking?

    Hi, my fla file is probably corrupted.

    I am using flash cs5, and I have 2 symbols in the fla... that if they are clicked (in the menu library), they flash crash instantly.

    then... How to eliminate them, without clicking on it? (if I click, also with the right button of the mouse... flash crash).

    I want to delete these 2 symbols, but I can't click on them, in the flash library menu.

    How can I do?

    in flash, locate the list box drop-down percentage (where you select a % and it shows your step at this size). to the left of it is an icon for the edition of symbols. If you click it, it will display a list of all items in your library, and when you click on an element, flash puts you in for this symbol editing mode.

    Whether you can switch to edit mode for these two symbols, delete everything inside those symbols... especially the TLF text boxes

    If all else fails, make a new fla and drag the items in your library from one fla to another, leaving the two corrupted alone elements

  • How to remove a Shift + Enter a string?

    I use LabVIEW 2010 SP1 and a table control to insert or modify data in a database. I have the height of row in the table control to 5 lines of text. There are 11 columns in the table, then the space of the cell in question is limited. Users fill the first line and press SHIFT + ENTER to keep the data in the cell. It works very well. When data is retrieved later, the formatting holds up very well, and the cell contains the data she was listed. There is no problem so far.

    later, the manager runs a program which generates a report of Word on the data already entered, and the RSS view in its reports. Need to press BACKSPACE to remove the line breaks, if the report uses words wrap function to set the length of the text. It would well do not have to do that, so that its report is ready faster. When the report is generated, I use a subvi to find and replace the line breaks, return, end of the line constants, and even a constant empty with SHIFT + ENTER inside. Nothing seems to work, and it has to format the report to his liking. Is there a way to remove pragmatically the shift + enter when the report is created?

    Thank you!

    I found it. I got my sub vi missing in a key inside an another sub vi position.

  • How to remove a Babylon error - file strings.dat is missing or damaged

    This box appears on the desktop before you connect to the internet.

    Is that what you have installed babylon translator?

    Please click the windows button and then type msconfig.

    Is Startup tab there something called Babylon or the babylon translator. If there is a check box and ok in the window. Then, restart the computer.

    Did a quick search of the net and found this... don't know how usefuly is I can't reproduce the problem at the moment - http://www.securitystronghold.com/gates/babylon-translator.html

    MyPcHealth - free tools

Maybe you are looking for