RegEx request - non alpha numeric characters

Hello

On our system Oracle EBS users can paste data into the system and 'strange' characters are not caught in the trap, so they can stick in the forms from word for example and include non-standard characters. Sorry if this sounds vague.

I need to find the non-alphanumeric characters in a table that are mounted 'break' a system that takes the data from Oracle and put some of them in an XML file. We do not have one problem with other valid characters are for example

!" £$%^&*()_+-=[{]};:'@,<.>/?\|

I know for example, a character that causes a problem is the character that MS Word uses to replace a dash.

for example if I type:

* This - only *.

Password to:

* It - that *.

It's a character I can't type on my keyboard and an example of a character I'd like to be able to find by using SQL.

There are probably others, but all I want to do is find characters "non-standard."

I have a sample transaction ID, I know that contains the funny MS dashboard, so this SQL returns:
SELECT pec.expenditure_comment
  FROM pa.pa_expenditure_comments pec
 WHERE REGEXP_LIKE (pec.expenditure_comment
                  , '(^ )|[^[:alnum:] &!"£$%^()_+=-{};:@#~,<.>/?\|]')
   AND pec.expenditure_item_id = 6445260
However, it also returns the other folders that don't contain funny characters, so I don't think that it's working properly.

That's why ask me for advice here. Any help would be appreciated.

Thank you

Tags: Database

Similar Questions

  • How to allow the user to enter only alpha numeric characters in the text field?

    Hello

    Is it possible to restrict the user to enter only alpha numeric characters in the textfiled?

    Thank you

    Starting from the version 4.7, I don't see any how useful filter adapted to your needs.  Then why don't you override keyChar() like this:

    EditField eField = new EditField("Enter letters and digits only: ", "") {
        protected boolean keyChar(char ch, int status, int time) {
            if (CharacterUtilities.isLetter(ch) || CharacterUtilities.isDigit(ch) || (ch == Characters.BACKSPACE)) {
                return super.keyChar(ch, status, time);
            }
            return true;
        }
    };
    

    I have not tested this code, but you can give it a shot...

    You can add a manipulation (or super.keyChar...) for Characters.ENTER and Characters.ESCAPE, as well as anything else you be useful, such as the comma and the period.

    Hope this helps,

    Arkady.

    Edit: added Characters.BACKSPACE - you want to change, not you?

  • Replacement of alpha-numeric characters using SQL only

    Hello

    I have a field with the following distribution of the alpha-numeric

    C84 CW66, GED54,

    How can I change the following format for

    Cw 66, 54, C 84 GOL

    only by using SQL commands and not to the help of PL/SQL procedures or function?

    Thank you.

    Hello

    Welcome to the forum!

    REGEXP_REPLACE ( str     -- or maybe INITCAP (str)
                , '([[:alpha:]])([[:digit:]])'
                , '\1''\2'
                )
    

    Returns a copy of the str string, with a single quote added after each letter (upper or lower case) which was initially followed immediately by a number.
    If you want to change the case at the same time, use INITCAP (str) as 1st REGEXP_REPLACE argument.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using. REGEXP_REPLACE works in Oracle 10.1 or more.
    See the FAQ forum {message identifier: = 9360002}

  • I have some questions in which the typed characters appear in the wrong order when a non alpha-numeric character is used.

    For example, I type Florida Derby (G1), and the text appears) Florida Derby (G1. Also, I can't register my software. I bought the software and serial legally.

    Please reset the preferences for the places, names, file preference, Photoshop functions once. Photoshop CC 2014

  • Return of the Non-numeric characters

    Hi all

    IM using Oracle 11 g 2. Here is my sample data and I want to search for the string has non-numeric characters in it.
    with t as
    (
    select '123' val from dual
    union
    select ' 123' val from dual
    union
    select '1123' val from dual
    union
    select 'A123' val from dual
    union
    select 'x 123' val from dual
    union
    select '#123' val from dual
    )
    select val from t
    where regexp_like (val, '[[:alpha:]|[:blank:]|#]')
    Query works perfectly for result value but would break if another string, say 123 @', with a special character comes. There is therefore no format specifier (as we [: alpha:], [: digit :]) to directly identify the non-digit character, including the space in a string?]) If not what is the round job for her?

    Thank you
    Vivek
    with t as
    (
    select '123' val from dual
    union
    select ' 123' val from dual
    union
    select '1123' val from dual
    union
    select 'A123' val from dual
    union
    select 'x 123' val from dual
    union
    select '#123' val from dual
    union
    select '@123' val from dual
    )
    select val
    from   t
    where  regexp_like (val, '[^[:digit:]]');
    

    must not specify a figure

  • The analysis of the non-numeric characters in a string

    Hello

    I am communicating a robot to LabVIEW (2013) via TCP/IP and sockets. The robot is the server, and LV is the customer.

    I start with the target data in this format (in a string):

    "[0 ~ 100 ~ 0] ~ [0.96593 ~-0.25882 ~ 0 ~ 0] ~ [1 ~ 0 ~ 0 ~ 0] ~ [150 ~ 50]."

    [X, Y, Z], [Q1, Q2, Q3, Q4], [C1, C4, C6, Cx], [TCPVel, OrientVel] except replacement ',' (comma) with a ' ~ ' (tilde) because I load the target data in a spreadsheet which is a comma-delimited file.

    In LV, I take this string, the analysis of the chain and split individual items. I then pulled the singular elements as unique, 32-bit of real numbers. I take each one and convert them individually to a string, concatenate them and send them to the robot. The robot decompresses these raw bytes individually and converts them to a target of robot (position in space).

    I train (BT) check if the user has sent a bad character (non-digital) in the target data. Example of this is:

    [- 50 ~-150 ~ 0] ~ [0.96593 ~-0 ] [B2has5D882 ~ 0 ~ 0] ~ [1 ~-1 ~ 0 ~ 0] ~ [150 ~ 50]

    Now in BT, when I'm scanning the chain, these bad character becomes the entire element to zero and everything else then to zero as well. See attachment for example screen similar.

    My question is, my VI, I can analyze all non-numeric characters (that are inside the parentheses and characters that are NOT a ' ~ ' (tilde))? In this way, I can always get this item numbers and do not have this element or other items turn to zero?

    Thanks in advance for any help!

    Sorry for the question of the test

    SM


  • How to display the data, that contains non-numeric characters.

    Hello

    I have table t1 with column of type varchar2 below

    ID

    ------

    11151

    11412

    1113

    1 to 114

    11b 15

    111 6

    Now, I need to display the data, that contains non-numeric characters.

    Did you get the result like:

    STR

    ----------

    1 to 114

    11b 15

    111 6

    WITH t
         AS (SELECT '11151' str FROM DUAL
             UNION ALL
             SELECT '11412' FROM DUAL
             UNION ALL
             SELECT '1113' FROM DUAL
             UNION ALL
             SELECT '1a114' FROM DUAL
             UNION ALL
             SELECT '11b15' FROM DUAL
             UNION ALL
             SELECT '111c6' FROM DUAL)
    SELECT *
      FROM t
      where regexp_like(str,'[^[:digit:]]');
    

    See you soon,.

    Manik.

  • Option profile "ICX: numeric characters.

    Hello

    When I put the value from under profile as user level option

    ICX: Digit = 10 000,00

    The FND_PROFILE function call. Return value('ICX_NUMERIC_CHARACTERS) '., ' wherever I think «,»

    Also, SQL query return the same value as the function call:
    SQL > SELECT PROFILE_OPTION_VALUE
    2 FROM FND_PROFILE_OPTION_VALUES
    3. WHERE PROFILE_OPTION_ID = 3532
    4 AND LEVEL_VALUE = 4970
    5 and level_id = 10004;

    PROFILE_OPTION_VALUE
    -------------------------------------
    .,


    Similarly, when

    ICX: Numeric characters = 10,000.00

    The FND_PROFILE function call. "" Return VALUE('ICX_NUMERIC_CHARACTERS) "," wherever I would expect ".,

    Also, SQL query return the same value as the function call:
    SQL > SELECT PROFILE_OPTION_VALUE
    2 FROM FND_PROFILE_OPTION_VALUES
    3. WHERE PROFILE_OPTION_ID = 3532
    4 AND LEVEL_VALUE = 4970
    5 and level_id = 10004;

    PROFILE_OPTION_VALUE
    -------------------------------------
    ,.

    Is this expected behavior?

    This shift is causing issues with our German users. They run a simultaneous program which submits a request for the child. Since they have the value of this option of profile defined as 10,000.00 and territory as the Germany, their request for the child ends with error with the message "ORA-01722: invalid number." When we changed the value of the option profile 10,000.00 and territory in the United Kingdom, same request completed normally.

    Your help/comments will be highly appreciated.

    Kind regards
    NK

    Salvation;

    What is the version of the EBS?

    Please see the paragraphs below:
    The digital fields when management profile Icx: numeric character = 10.000,00 [ID 452839.1]
    What is the setting and the profile Option ICX feature: digital characters? [167513.1 ID]

    See also:
    Report lack numeric characters given to 10,000.00 [858245.1 ID] ICX profile option

    Respect of
    HELIOS

  • How can I display the printable two than non-printable ascii characters from a device and display it in a text box?

    Hello

    My send UUT to my computer via serial port of printable and non-printable ascii characters. The question is:

    (1) how to display all characters in a text box.

    (2) how can I display all these characters in hexadecimal format and display it in a text box?

    Thank you.

    Robert

    Text boxes can actually receive channels with printable and non-printable characters: nonprinting characters will be represented with a small square. For example, consider this code:

    tank has [512], msg [512];

    Create a string with embedded unprintable characters

    sprintf (one, "Hello: %c %c %c %c % c: World!", 1, 2, 3, 4, 5);

    Pass the string to the text box "such what."

    ResetTextBox (bH [1], b1_n, a);

    Format a hexadecimal representation of the string and add it to the text box

    FMT (msg, '\n%*d[zb1r16w2p0j1]', strlen (a), a);
    SetCtrlVal (Bosnia and Herzegovina [1], b1_n, msg);

    The result is as follows: the first line is the string passed "such what", what follows is the hexadecimal representation.

  • Sort of a system of numbering both Alpha and numeric characters

    I have a database of about 370 products we manufacture. The numbering system is 3 digit design followed by the character alpha code 1-6 letters. For example:

    014A6LP (for our company, that means that number 14, while the A6 refers to a particular size and the LP of the design is the type of product).

    014FAP (same design, different product type)

    014A2LPBX (again, same design, different product type)

    I tried to sort my table such as numbers and text. I tried to add custom formats that include leading zeros. I even tried to let go the zeros (even if I really need them). I don't like to work.

    The result I want is this:

    001A6LP

    002A6LP

    002FAP

    003A2FPBX

    003A6LP

    003NBF

    etc, etc.

    what I get instead is this: as you can see it my list starts with 012 instead of 001. As it continues, 100 comes before 010, etc.

    I look forward to your ideas and help.

    Thank you

    Josh

    Hi Josh,.

    You can paste your table in a post (as opposed to a screenshot)?  In this way we can try the actual values you have.

    SG

  • installed MS sculpt keyboard comfort. Works for keyboard but alpha numeric keypad does not work. What should do?

    Keyboard MS Sculpt installed comfort. alpha keyboard works but not paved. What should I do?

    Hi Parker,.

    I imagine the inconvenience that you are experiencing. I'll certainly try and help you in the matter of fixing.

    To help you to propose measures to solve the problem, I would appreciate if you could answer the following questions:

    1. have you installed the drivers for the keyboard?

    2. is it a USB keyboard? If so, then try connecting the keyboard to the other USB port and check if the problem persists.

    3. are you aware of any recent software or hardware on the computer changes?

    Try to activate the numeric keypad and check if it helps, here are the steps:

    1. open on-screen keyboard by clicking the Start button, tap all programs, accessories, ease of access, and then clicking on-screen Keyboard.

    2. click on Options, check the Pad box and then click OK.

    Hope this helps and let us know if you need more assistance. We will be happy to help you.

  • Numeric characters

    I have the names and I want to remove the space between them and convert them to digital characters. For example, Tony smith, I would like to remove the space between smith and Tony and convert it to digital characters.

    Note:

    Numeric or alphanumeric characters whatever.

    Published by: varun March 17, 2011 09:02

    Maybe something like:

    SQL> select 'Tony Smith' str
      2  ,      translate(lower(replace('Tony Smith', chr(32))), 'abcdefghijklmnopqrstuvwxyz'
      3                                                        , '12345678901234567890123456'
      4                  ) nr
      5  from   dual; 
    
    STR        NR
    ---------- ---------
    Tony Smith 054593908
    
    1 row selected.
    

    ?

  • SQL: How to tell the difference between the numerical value and Alpha numeric

    Pls check the following requirements and let me know how to prepare the SQL:

    1. I want to find the product that begins with Alpha value separately

    2. I want to find the product that starts with the numerical value separately

    data are the following:
    CREATE TABLE prod
        (product_code                   VARCHAR2(4) NOT NULL)
    INSERT INTO prod
    VALUES
    ('L016')
    /
    INSERT INTO prod
    VALUES
    ('A035')
    /
    INSERT INTO prod
    VALUES
    ('B001')
    /
    INSERT INTO prod
    VALUES
    ('1717')
    /
    INSERT INTO prod
    VALUES
    ('7151')
    /
    INSERT INTO prod
    VALUES
    ('7019')
    /
    INSERT INTO prod
    VALUES
    ('0729')
    /
    INSERT INTO prod
    VALUES
    ('0730')
    /
    INSERT INTO prod
    VALUES
    ('L007')
    /
    INSERT INTO prod
    VALUES
    ('C013')
    /
    INSERT INTO prod
    VALUES
    ('D008')
    /
    INSERT INTO prod
    VALUES
    ('L021')
    /
    INSERT INTO prod
    VALUES
    ('0710')
    /
    INSERT INTO prod
    VALUES
    ('0718')
    /
    INSERT INTO prod
    VALUES
    ('L005')
    /
    INSERT INTO prod
    VALUES
    ('0716')
    /
    INSERT INTO prod
    VALUES
    ('0711')
    /
    INSERT INTO prod
    VALUES
    ('0701')
    /
    INSERT INTO prod
    VALUES
    ('0724')
    /
    INSERT INTO prod
    VALUES
    ('0728')
    /
    INSERT INTO prod
    VALUES
    ('0714')
    /
    INSERT INTO prod
    VALUES
    ('0704')
    /
    INSERT INTO prod
    VALUES
    ('7150')
    /
    INSERT INTO prod
    VALUES
    ('L024')
    /
    INSERT INTO prod
    VALUES
    ('L033')
    /
    INSERT INTO prod
    VALUES
    ('0721')
    /
    INSERT INTO prod
    VALUES
    ('0708')
    /
    INSERT INTO prod
    VALUES
    ('0723')
    /
    INSERT INTO prod
    VALUES
    ('L004')
    /
    INSERT INTO prod
    VALUES
    ('L018')
    /
    INSERT INTO prod
    VALUES
    ('0725')
    /
    INSERT INTO prod
    VALUES
    ('0719')
    /
    INSERT INTO prod
    VALUES
    ('0726')
    /
    INSERT INTO prod
    VALUES
    ('0712')
    /
    INSERT INTO prod
    VALUES
    ('0727')
    /
    INSERT INTO prod
    VALUES
    ('0703')
    /
    INSERT INTO prod
    VALUES
    ('TEST')
    /
    Kind regards

    Yamen
    1)select * from prod where translate(substr(product_code,1,1),'#0123456789','#') != '#'
    
    2)select * from prod where translate(substr(product_code,1,1),'#0123456789','#') is null
    

    Ravi Kumar

  • Non-alpha Vista Control Panel, the icons are randomly dispersed

    A friend with Vista has a control panel where the icons are not willing or the normal horizontal alphabetical way, or in a vertical alpha order. They are scattered at random, apparently. This is the 1st time I saw it. What would cause this condition? How icons can be changed to a normal alphabetical order?

    Hello

    Welcome to the community of Microsoft and thanks for posting the question. I've surely you will help find a solution on the issue.

    1. is this problem limited to the functions of Control Panel?

    2. are you aware of changes to the computer before the show?

    Method 1:

    Step 1: Safe Mode

    Start your computer in safe mode and check the number.

    To start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Step 2: Clean boot

    If you are not facing the problem in safe mode, and then put your computer in a clean boot and search for the question.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Once you are done with the boot, follow step 3 in the article by putting your computer to normal startup.
     
     
    Method 2:

    Perform a SFC scan on your computer. Consult the following link:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Also check the event viewer for errors or messages logs.

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-information-appears-in-event-logs-Event-Viewer

    Check out this link to open the event viewer:

    Open event viewer
    http://Windows.Microsoft.com/en-us/Windows-Vista/open-Event-Viewer


    Provide more information about the issue so that we can help you. Hope this information helps.
  • Phones unlocking password box smart blackBerry. Keyboard allows only numeric characters.

    I choose aA which is at the top right, but this disappears 123 boxes and in the top right of the screen is displayed when you try to unlock the keyboard.  The 123 box does not turn off when the unlocking password box is displayed. Alphabetic characters in my password may not be seized at all from the table, only those digital.

    I can't unlock and therefore to use the phone.

    I removed the battery and restarted a couple of times without change.

    Ideas welcome!

    drmarkpenney wrote:

    The problem is only with the normal box saying "Enter PIN Code".

    There is your idea, he wants the PIN SIM lock code, it does NOT have a password, I promise you.

    If you do not know your PIN, call O2 and ask. It's NOT the same as a smart phone BlackBerry PIN (which is eight alphanumeric characters. He wants a digital code to four digits.

    Believe me. Summer is here.

Maybe you are looking for

  • Satellite P105-S9312 - lights

    Hey, so I tried to turn on my laptop today and he decided not to display a photo either when I turn it on. I think that my video card is fried, but I'm not an expert. For the past few weeks whenever I tried to boot up my laptop I have to turn the pow

  • 8470w: Overclock 8470w

    I want a bios update HP that allows me to overclock my CPU, GPU and RAM hardcore/freestyle and not with all the features locked that you incist so kindly to implent year after year. My benefits have all expired so I take full responsibility for my ac

  • After the upgrade to windows 8 wifi is not working.my laptop is pavilion dv6-7039tx

    I tried both drivers windows 7 & 8 but there not work.after restart wifi does not work or when he went to sleep, and after the release of the wifi sleep does not switch on.i installed hp wireless button service also, you see one plane mode we / off.s

  • Can I replace my computer laptop vga 320M with an another one high dx11?

    Hello Can I replace my laptop ' HP Pavilion dv6t-2300 CTO Entertainment Notebook PC "graphics card 'nvidia geforce gt 320M' with an another one high dx11?

  • Can I switch from Windows 7 to Windows 10

    Hello I have an older laptop that has been sitting in a drawer for nearly six months. I took it apart to see if I could update directly from Windows 7 to Windows 10, but when I put the charger - I don't remember if the charger is a new that I bought