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

Tags: NI Software

Similar Questions

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

  • Bunch of Oracle on the special characters in a string - translate?

    How to remove special characters in a string, it can contain. , (space), etc.

    SELECT TRANSLATE('123.456 (90-90)', '', '') FROM DUAL
    

    Basically I want to undress and to compare with the db value.

    WHERE TRANSLATE(TABLE.NUMCODE, '', '')  = TRANSLATE('123.456 (90-90)', '', '') 
    

    Use TRANSLATE, since you're on 9i. For example:

    TRANSLATE (your_string,'X,. #! % @$ ^ & * () _-+=', 'X')

    Removes all the s characters in ', #! % @$ ^ & * () _-+=' of your_string.

    SY.

  • How to insert special characters

    Hey,.

    I can't understand how to insert special characters in a paragraph (the "Indent to Here" in this case).

    I tried text_frame.paragraphs [0] .silence += SpecialCharacters.INDENT_HERE_TAB;  but all I get is "1397319796" instead of the actual character.

    How to insert special characters instead of these numbers?

    Zoffix222 wrote:

    People who visit, but nobody don't know it?

    What, you mean that in the 5 minutes that you posted it responded to nobody? Shocking indeed.

    You already learned by yourself, 'content' is the wrong type of object stuff "SpecialCharacters' in. 'content' is the content of the text, translated in a simple string of Javascript. Only when you change a single 'character', you can use "SpecialCharacters", because at that time there Extendscript will see that you do not want to change the string "full"?

  • How to insert special characters when I hit e-mail or Facebook?

    How to insert special characters when I hit e-mail or Facebook?

    See also:

  • How to get special characters in the oracle column only

    Hi all

    with spec_tab

    as

    (

    Select ',' col1 of double

    Union

    Select ',' col1 of double

    Union

    Select 'something' double

    )

    Select col1

    of spec_tab

    How to get special characters in the oracle column only

    You mean like this?

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

    WITH spec_tab
         AS (SELECT ',,,,' col1 FROM DUAL
             UNION
             SELECT ',' col1 FROM DUAL
             UNION
             SELECT 'some thing' FROM DUAL)
    SELECT col1
      FROM spec_tab
      where translate('~'||col1,'~0123456789abcdefghijklmnopqrstuvwxyz ','~')<>'~'
    

    Output:

    -----

    COL1

    ,

    ,,,,

    See you soon,.

    Manik.

  • How to enter special characters with the Run statement (@).

    Hello

    Oracle10g (R1)

    NLS_CHARACTERSET = "AL32UTF8.

    When I insert record with special characters like "hastened" with the customer tool insert it works fine, but I run the same INSERT statement execution i.e. statement "SQL > @/ path/Script_File_Name.sql ' special characters has not inserted correctly and it become something like 'h¿ta'.»»

    How to enter special characters correctly race (@) statement?

    Thank you

    If you create a file in Notepad, select the ANSI or the encoding UTF-8 in the dialog box save as.  Copy the Linux file in binary mode. Set the variable NLS_LANG ".» WE8MSWIN1252 ", if the file was saved with the ANSI coding or to. AL32UTF8", if the file was saved with UTF-8 encoding. Be sure to export the variable.  Then, start SQL * more and run the script.  I guess that you are on a U.S. or Western Europe of Windows version.

    Thank you

    Sergiusz

  • 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
    
  • Avoid special characters

    Hi all

    I want to avoid the special characters when write to ActiveAutoTextEditField.

    In fact, I try to ActiveAutoTextEditField to alphanumeric.

    I did the code:

     protected boolean keyChar(char ch, int status, int time)
    {
             String alphaNumeric = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
    
                if (alphaNumeric.indexOf(String.valueOf(ch))!=-1) {
                    return super.keyChar(ch, status, time);
    
                }
                return false;
    
    }
    

    But the code above supports special characters. Please solve my problem.

    Thanks in advance

    Sanjit

    .

    Watch using a filter TextFilter as another possible solution to your problem.  The filters are indeed how input fields restrict entry to the simply whole for example, so I think that maybe it's the more "correct" solution

  • How to keep special characters in a dynamic textfield for textual comparison?

    The problem is the following:

    As I develop primarily for several languages, I have to have dynamic textfields in my buttons that contain three lines (to account for the different text.lengths in different languages).

    I then fill the textfields with strings from an array or an xml and use the contents of textfields later in my button class to run a different code based on the contents of textfields.

    It works fine as long as I don't use special characters, such as for example '\n '.

    var labels: Array = ["\nLABEL1","LABEL\n\n2"];

    ...

    Switch (e.currentTarget.txt.text)

    {

    labels box [0]:

    doSomething();

    break;

    [1] case labels:

    doSomethingElse();

    break;

    }

    ...

    Watch the good thing in the label of the button (breaks up the text were want it)

    but stops working

    (htmlText & < br > This is the same thing)

    My solution for now is to use spaces to fill,

    var labels:Array = ["                   LABEL1","LABEL                                                                        2"];

    but it's obviously ugly to set up and require a lot of trial/error to get it right for all languages.

    Any ideas how to get around this?

    This isn't a good idea to rely on the labels of the buttons to link to the feature at first - we shouldn't mix presentation and business logic. There is more than one dependencies. A better approach would be to separate the presentation logic.

  • How to handle special characters in the Apex

    Hello

    In my application, I have two regions - region report (interactive report) and other is region HTML with text elements two - Empno and name

    My report has two columns Empno (varchar2) and Ename (varchar2).

    When I click on the link change in the column of the report, the empno should be a read-only value EMPNO and ename is a text with the value of the ENAME field.

    When I run my application, I have encountered the following problems:
    1. If my empno has special characters such as "#", the characters after that is not posting
    2. If my empno has special characters such as "," characters after the decimal point is considered to be a value of next texitem

    Here is my authentication information,

    CTSAN_ORACLE_DB workspace
    Username [email protected]
    Password lakshmi321
    URL: http://apex.oracle.com/pls/apex/f?p=9444:19:4292839314890159:


    Please, I beg you. suggest me how to fix these problems.

    Thank you
    David...

    Published by: David on August 13, 2010 03:05

    Do not pass the data values in the URL. If it is possible to escape values to make URL - and APEX parameter-safe, it is much better to avoid the problem completely.

    Create a primary key of the substitution on the table which is an immutable discreet digital identifier and use it only as a URL parameter. In pages/target areas, use this value of PK to extract the data from the table.

  • How to find special characters in a single query

    Dear Experts,

    Your usual help is needed to resolve the query. My query is ' how to find all special characters such as (% $* & @, ' / +-etc. in a single query?).
    Thank you.

    for example


    A_MIR
    A % SIM
    A * SIM
    SIM HAS)

    Hello

    This can work:

    select * from your_table where replace(translate(your_column,' abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890','x'),'x','') is not null
    

    Above code verifies an ascii and numbers. You can adjust the chain with other characters you want to see (exclude)

    Herald tiomela
    http://htendam.WordPress.com

  • Find special characters in a string

    Hi all, I am using Oracle 10 g.

    I have a column name with special characters. How can I replace the special characters in the column with space and no space based on the special character. Please see the example below. can I use REGEXP_REPLACE?

    create table
    create table sample_test (
      Name    VARCHAR2(20 BYTE))
    Insert a table
     insert into sample_test values ('O''NEIL')
         insert into sample_test values ('B.E.VICTOR')
          insert into sample_test values ('WILLIAM,L')
           insert into sample_test values ('MARY-ANNE')
               insert into sample_test values ('VON_ANCKEN')
                insert into sample_test values ('BROWN;L')
    I would like the following output
     
    Special Character         Name         Expected Name                  Remarks      
     
    Single Quotes            O'NEIL                  ONEIL                          Remove quotes and no space        
    Dot                      B.E.VICTOR         B E VICTOR                          Replace with space        
    Comma                      WILLIAM,L         WILLIAM L                          Replace with space        
    Hyphen                      MARY-ANNE         MARY ANNE                          Replace with space        
    Underscore                VON_ANCKEN         VON ANCKEN                          Replace with space        
    Semi Colon              BROWN;L          BROWN L                          Replace with space      
    Please notify.

    Thank you
    Bob

    A simple solution without the use of regexp:

    -- Test Data
    with sample_test as
    (
    select 'O''NEIL' name from dual union all
    select 'B.E.VICTOR'  name from dual union all
    select'WILLIAM,L' name from dual union all
    select'MARY-ANNE' name from dual union all
    select'VON_ANCKEN' name from dual union all
    select'BROWN;L' name from dual
    )
    -- Query:
    select name old_name,
           translate(replace(name,'''',''),'.,-_;','     ') new_name
    from sample_test;
    

    Explanation:

    REPLACE deletes the quote
    TRANSLATE replaces point, comma, dash, semicolon and underscore

Maybe you are looking for

  • iMac 5K stutters / freezes

    Hello Today my iMac (27 ", end of 2015, OSX El Capitan 10.11.5, 32 GB of memory, disk fusion AMD R9 M395X 4 GB) suddenly started to freeze for a few seconds, then work fine, then freeze again. First of all, I thought it was a problem with Photoshop C

  • Z220 CMT: GTX 1060 and HP Z220 CMT?

    Anyone who has tried the upgrade of a Z220 CMT with a 1060 GTX graphics card? The card consumes quiet low-power)< 130="" watts)="" and="" would="" be="" a="" worthy upgrade="" for="" my=""  gtx="" 750="" ti="" -="" which="" worked="" nicely="" for=""

  • Auto Restart Y510 - power

    I have a 18 month old lenovo y510. Its functioning smoothly with windows vista that came with it. The one and a worrisome problem is that it restarts automatically when it is lying idle and mainly when the charger is connected. I noticed a number of

  • Screenshot help

    I tried to take a screenshot of the stage, resize, and add it to a Sprite by using the following code. Instead of a smaller version of what the scene looks like, nothing seems to happen at all. var data:BitmapData = new BitmapData(1024, 600, true, 0x

  • Build 7601 copy Windows not genuine?

    I had no problem until a system of Windows Update, July 16. Then, suddenly, my copy of Windows is not genuine. I bought this computer from Verizon and have not had any problems until today. Thank you Denise This is the report. Diagnostic report (1.9.