Need reg_exp for checking the string contains only alphanumeric or not

Dear All,
I need to check the given string in if condtion contains only the alphanumeric or not pls help me..
like
if reg_exp then
end if;
thanks,
Oracle

Hi,
REGEXP_LIKE ( str
            , '[^[:alnum:]]'
            )returns TRUE if the string str contains any character other than an alphanumeric.
You can use this wherever conditions are allowed, such as a WHERE clause or a CASE expression. For example:
SELECT     str
.     CASE
         WHEN  REGEXP_LIKE ( str
                     , '[^[:alnum:]]'
         THEN  'Contains speace, punctuation or special symbol'
         ELSE  'Okay'
     END               AS is_alnum
FROM     table_x
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using.
Edited by: Frank Kulash on Dec 30, 2011 4:37 AM

Similar Messages

  • To check the string for a particular character

    i want to check the string contains ',' (comma) or not. can anyone help me?

    i want to check the string contains ',' (comma) or
    not. can anyone help me?you can use 'indexOf' method at string object
    String s1 = "test,tet1";
    boolean bfind = s1.indexOf(',') > -1 or
    boolean bfind = s1.indexOf(",") > -1

  • Check String contains a word or not?

    Hi Friends,
    I have a string which is containing list of words. I have to check the string contains perticular word in it or not.
    e.g. String str = "I am Hiren Modi";
    In java, Is there any function which can help me to find Hiren world is there in str variable or not?
    Thanks in advance...
    - Hiren Modi

    venu_gopal wrote:
    hi,
    myself is venu. i hope that there is no method. explicitly we have to write the logic for that.
    bye..Venu , please go through string API there is contains() method u can use , instate of writing u r own logic
    read it http://java.sun.com/javase/6/docs/api/java/lang/String.html
    Edited by: AmitChalwade123456 on Nov 20, 2007 5:27 AM

  • How to find out whether the String contains chinese characters

    I need to check if the string contains chinese characters in Java. Does anyone know how to do it? thx.

    Since Java strings contain UNICODE code points, check the content against the relevant page here - http://www.unicode.org/charts/ .

  • How to judge whether the chars contain only number and letter

    how to judge whether the chars contain only number and letter, for example :
    'AEs4386' is valid , but '‘´‘¼ew78' is not
    thanks for your help !

    Hi,
    try the following:
    data: l_test(36) type c.
    concatenate sy-abcde '0123456789' into l_test.
    l_test contains all letters all numbers now
    translate YourVariable to upper case.
    YourVariable contains only upper case letters
    check YourVariable co l_test. " or use if instead of check
    YourVariable contains only letters or numbers
    regards
    Siggi

  • How to Identify whether string contains only numbers

    Hi Experts,
    How to identify whether a string contains only numbers...
    Thanks & Regards,
    Neeraj.

    Hi Neeraj,
    ISNUMERIC(String_Field)
    The above function returns '0' for non-numerics and
    '1' for numeric
    Hope this helps.
    Regards,
    Bala

  • Tcode for checking the Maintenance Plan

    Hello,
    I want the transaction code for checking the list of maintenance plan for a particular plant. I went thru tcode IP03, IP16 but could not find the option of plant there..
    Kindly guide..
    Regards,
    Naren

    Naren,
    As stated above, there isn't a plant field in the maintenance plan (only maintenance item, hence the reference ot IP17)
    However, it is quite common to use the maintenance plan Sort field as a plant field by customising the table settings for each plant.
    PeteA

  • How to check postal code contains only 0 to 9

    Hi all,
    How to check postal code contains only 0 to 9
    thank you

    Hi
    Check the below link.It may help you out.
    http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
    Cheers,
    Hakim
    mark all useful answers

  • What is the tracking ID for checking the status of a sent text message??

    i don't know what the tracking ID is for checking the status of a sent text message...

    You didn't need to post here and start a new thread; you could have just done a search, i.e.,
    https://community.verizonwireless.com/thread/455106

  • What checks the String pool

    Hi there.
    With regard to the string pool,
    my book states that whenever the compiler
    encounters a string literal that it will check the pool to see if
    there is a matching string...
    This doesn't seem right to me.
    I would have imagined that the JVM would perform this operation at runtime.
    Maybe I'm wrong, but I googled it and I came across some sites that indicate that
    the JVM checks the string pool.
    Im just wondering which is it, the JVM or the compiler.
    Thanks & regards.

    jverd wrote:
    Both.
    String s1 = "abc";
    String s2 = "abc";Compiler sees the first line, looks for "abc" in the class' constant pool, doesn't find it, adds it, places reference to its position for the assignment to s1.
    Compiler sees the second line, looks for "abc", finds it, places reference to its position for the assignment to s2.
    At runtime, when class is loaded, VM loads class' String constant pool. When time comes to execute the above lines, the bytecode tells it which constant pool entry to reference.Great answer (No, I'm not sarcastic)

  • To check that string contains space

    Hi...
    I have one char string, If that string contains any space then I want to display a message.
    how to check that string contains 'space'.
    Regards,
    Rohit

    Hi, you can do a small work.
    you can split the char string into substrings at spaces.
    if there is space then it will be splitted and then you can check the sy-subrc.
    if sy-subrc = 0,
    then the char string had some space in it.
    regards
    jayati

  • User exit or a badi for checking the vendor email id in me22n on me29n

    hi all,
    can anybody suggest me a user exit or a badi  for checking the email id of the vendor in me21n or me22n or me29n.
    i.e. a user exit or a BADI which gets hit either at the time of creation or release of a purchase order.
    plz suggest me a solution its urgent.
    regards,
    santosh

    Hi Santosh,
    Have you looked BADI <b>ME_PROCESS_PO_CUST</b> or user exits <b>EXIT_SAPMM06E_016</b> / <b>EXIT_SAPMM06E_017</b>?
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • T.Code for checking the total value of a material

    Hi Experts,
      Can anybody tel me the T.code for checking the total value of a material which is procured in a specified period?
    Thanks in advance
    Channa

    Refer Tcode ME80FN click on Change Veiw & select Purchase Order History with this you can get PO-GRN-INVOICE Qty & Value details
    Last button on Application tool Bar it is in line of filter, total etc icons
    Also check below reports :
    MC$G - PURCHIS: Material PurchVal Selection
    MC$0 - PURCHIS: PurchGrp PurchVal Selection
    MC$< - PURCHIS: MatGrp PurchVal Selection
    MC$4 - PURCHIS: Vendor PurchVal Selection

  • Visio 2010 Validation for Checking the number of a specific type of shape.

    I have written a rule for flowchart for checking the number of Start/End Shapes in a document.
    The FilterExpression is as follows:
    AGGCOUNT(FILTERSET(SHAPESONPAGE(), HASCATEGORY("Start/End"))) > 0
    The TestExpression is as follows:
    AGGCOUNT(FILTERSET(SHAPESONPAGE(),HASCATEGORY("Start/End"))) = 2
    (Since totally there are 2 shapes: 1 Start and 1 End Shape)
    However, it is not working. Can anybody tell me what is wrong in the expressions.

    Well, it worked for me, so I want to check that you modified the Start/End master to have the User.msvShapeCategories row with the value "Start/End", as I did?
    A Category is not a Master
    David J Parker MVP (Visio) http://blog.bvisual.net

  • Kindly let me know the transaction for checking the Status of par.User?

    Kindly let me know the transaction for checking the Particular Users Status?
    I mean to say,Which Transaction is he into?
    Or Is he/She Logged on to a particular System?
    Regards,
    Shashank.

    Hi,
    Go to Transaction SM04.You will find the List of Users And the List of transactions ther are currently using.
    Regards,
    Sujit

Maybe you are looking for