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

Tags: Database

Similar Questions

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

  • SQL Loader isn't downloading correctly the non-ASCII characters

    I use SQL Loader to load data from the text file to DB. the non-ASCII character in the text file is not properly uploaded to DB.

    Examples of data
    test data üindex
    Data in DB
    test data ?index

    >
    ... 47,239,191,189,109,108,97,116...
    >

    translates

    "... / MLAT...". »

    http://ASCII.CL/htmlcodes.htm

    How is the data file generated? How do you verify that the data file is correct?

    I'm not sure what you mean by "is it possible to have these non-ASCII characters converted in UTF-8 encoding before loading to DB?

    HTH
    Srini

  • Removing the non-English characters

    Hello
    I'm trying to define a regular expression that helps me to replace the non-English of a string characters.
    For example:
    BESANÇON
    and I need to get something like: BESANÇON, or BESAN * IT.

    Could someone give me some advice?
    Max has.

    You can use the convert function:

    SELECT CONVERT('BESANÇON','US7ASCII')
    FROM dual;
    
    CONVERT(
    --------
    BESANCON
    1 row selected.
    
  • I recently installed a beta version, how to return to the non-beta updates?

    About Firefox said I'm under 42.0b3 and I'm updating. However he also said that I am on the "beta update channel". I don't think I really want to use beta versions. How to get back on the channel of standard update?

    Install the normal program
    Download Firefox full installation for all languages and systemsv.41 {web link}

  • 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
  • When I try to send an email to multiple recipients, I get this message: "there are non-ASCII characters in the local part of the address of the recipient. This is not

    I bought a new computer. When I try to send an e-mail to multiple recipients, now, I get this message: "there are non-ASCII characters in the local part of the address of the recipient. It is not yet supported. If please change this address and try again. "I don't know what are the non-ASCII characters, so I don't know what to do. I never had this problem on my old computer. Please explain in simple language.

    The 'local' part in the context of email addresses, the part to the left of the symbol @. The warning is a bit of a surprise, because in general the owner of a mail server is relatively free to specify the address format. There is a movement to allow the games to other characters to be used in the fields, so I'm a little disappointed to see that, apparently, e-mail does not support the latter in the local part yet or it can be your SMTP server that generates this message.

    ASCII characters ("American Standard Code for Information Interchange") are, on the whole, the English alphabet, uppercase and lowercase, as well as figures, common punctuation and case of things like the asterisks, obliques and media bars, but not of accented characters. But even apparently simple things like spaces and dashes have cousins who, at first glance, appear to be identical, but are not represented in the ASCII system. I am thinking especially nonbreaking spaces, dash and half-quadratin.

    But I don't know why your new computer must have caused these warnings.

  • Non - ASCII characters in the textinput box

    Hello

    I have a flex app where I have a TextInput box. If you paste the following (the non-ascii characters) inside:

    "" "¢ £¤ ¥ ¦§¨ © ª"¬® ¯ ° ±²³´µ¶·¸¹º® ¯ ° ±²³µ´¶µ·¹¸º"¼½¾¿aaeeeeiiiidooooooooonno" "

    what you end up with is:

    "" ‘’ "

    I'm guessing its some setting that miss me him and it would be something trivial for someone who knows the question

    Any help is appreciated.

    Thank you

    Hemant

    You may need to incorporate the police:

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=fonts_04.html

    If this post answers your question or assistance, please mark it as such.

  • How to distinguish the figures and characters from a string

    I am looking for a simple way to do this or any built-in subVIs that can do this.

    I have 3 strings "1234c", "ab3dc". 'XYA', I want to identify those who have numbers and to reclaim all of the numbers. So an important step is to distinguish the character numeric and non-numeric characters. How can I do it in Labview with subVIs integrated?

    Thank you

    [0-9] is looking for a number, "+" makes the search for 1 or more of them (it is "greedy", so it will get as many as there are has).  I added a rope in addition to your list to show that the Pattern Match will match only the first instance of a number.  If there's a chance you have data as the last element that you need to run it in a loop.  Decimal string number can also work if a figure is the first character that it finds.

  • SQL query to get the first four characters of an address

    Hi gurus,


    Can you please help me with the below quries on how to achieve this. Could be really helpful if you could provide a sample sql on your side.


    Req:

    I have a requriement where I should display the first four characters other than a space to address, for example: becomes R, DISH etc. F. in passing in a ROOM address a DISH 1 FLORIAN AVENUE would therefore "RAF1", while a CORNER, 23 STREET address would be "23CO".


    Words such as c/o, co, rear should be ignored, if any.

    Thanks in advance.


    Kind regards

    Peoples

    Hi John,.

    Here is an implementation of a pl/sql function that suggested a franc. It uses two lists, one with the words which are replaced with the first character and a second with words to ignore.

    create or replace function first_four (p_input in varchar2) return varchar2 is

    type t_words is table of the varchar2 (100);

    p_replace t_words: = t_words ('ROOM', 'FIELD', 'FLAT', 'FLT', 'BLOCK', 'UNIT', 'STUDIOS', 'CARAVAN', 'APARTMENT');

    p_ignore t_words: = t_words ("C/o ', 'CO', 'BACK TO'");

    v_input varchar2 (100);

    Start

    -Put the entry in a local-variable he

    v_input: = upper (p_input);

    -delete the words contained in the ignore list

    because me in 1.p_ignore.count

    loop

    v_input: = replace (v_input, p_ignore (i));

    end loop;

    -Replace the words by first character in the replacement list

    for r in 1.p_replace.count

    loop

    v_input: = replace (v_input, p_replace (r), substr (p_replace (r), 1, 1));

    end loop;

    -remove the spaces and return only the first 4 characters

    Return substr (replace (v_input, ' '), 1, 4);

    end;

    /

    It returns the expected results for the four examples you gave:

    SQL > with t as)

    2 select address 'FLAT 3 a 12 LILLYHAM ROAD' of all the double union

    3 select ' GREE LANE GLOSONTH 45' across Union double

    4 Select "FLAT 3 221 b Baker Street," of all the double union

    5. Select "C/o CARAVAN 32 STREET BLOK 6 RICHMOOND' of the double)

    6. Select ff first_four (address) of t;

    FF

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

    F3A1

    45GR

    F322

    C32B

  • Password Oracle 11r2 with non-alphanumeric characters

    Spec: Windows 2008, Oracle 11 g 2

    Problem: create userme identified by myp * ssword!
    I'm trying to create a user name with a password with some of the non-alphanumeric characters, but get the error:
    ERROR at line 1:
    ORA-00922: missing or not valid option
    the error is non-alphanumeric characters (* AND!)

    Any idea and soluton would be appreciated.

    The * character is not allowed, check http://docs.oracle.com/cd/B28359_01/server.111/b28337/tdpsg_user_accounts.htm#BEICECGF "Requirements to create passwords" for more details.

    Published by: 197652048902 on June 7, 2012 20:44

    Published by: 197652048902 on June 7, 2012 20:46

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

  • Coding - returns the number of characters in a text box.

    I am trying to create an animation/simulation of cellular phone on board animate CC for use in a course of Captivate. In fact, when a user clicks on the number keys on the virtual keyboard, it displays the numbers in a text box, just as a real cell phone will display the phone number on the screen as a caller to connect. Thus, the user must click seven buttons and a seven-digit phone number is displayed on the screen of the virtual phone.  This part of my animation works fine and all seven digits appear, but I want to change the code so that a hyphen appears after that the third button clicked. In this way, the output looks like better a phone number instead of just a string of seven digits.

    Here is an example of the code that I currently assigned to the #2 in the virtual keyboard button:

    var text = sym.$("PhoneNum").html ();

    text = text + 2;

    SYM.$("PhoneNum").html (Text);

    PhoneNum is the name of my text box on the stage where the numbers appear as a click is performed on every key on the keyboard.

    To incorporate the hyphen after the third button clicked, I need to return the number of characters in the text PhoneNum sort box, then create an if/else scenario that applies the hyphen after the third button clicked.

    Anyone know how I can use JavaScript or jQuery to return the number of characters currently in the text box PhoneNum ?

    SYM. $("PhoneNum") .text () .length;

  • Is it possible to download non-numeric data in the planning of the ODI?

    Dear all,
    I have problem to download non-numeric data in planning?


    Kind regards
    Thomas

    If it is a member of type text then have a read here for a possible solution to the loading of the text member information.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for

  • Satellite 1800-314 memory problem

    Hey everybody. I just bought an old Satellite 1800-314 (Cel 1.1 GHZ, 256 RAM, 16 MB graphics card) from my college and I triedthe parameters of this model using the AIDA 32 program.To my surprise to read RAM showed only 148 Mbps - slower than the Pen

  • forget the apple security question answer

    Hi how to do security answer? as I forgot the answer

  • Qosmio G30 does not recognize the SD card

    Hello Can you help me? My SD card is not recognized when I push it.Is there a driver I need to download to fix this? Post edited by: ADMIN

  • Optimization of 3D image blocking LabVIEW

    I'm evaluating the picture 3D for an upcoming project control - but every time I drag him in VI it causes LabVIEW to plant. The same also occurs when you try to load an example VI with a 3D picture control. I'm using LabVIEW 2010 with Windows XP. Any

  • Free Ride Exetener player

    I tried to uninstall and reinstall the Player Free Ride games and games that I had downloaded, just to make my computer de-funct.  I repeatedly get the following: fatal error invalid or missing files in the installation directory resources, please re