Find the alteast one number and one character in the given string

Hi All,
How to find the given input string it contains at least one alpha and one number.
My test data like this
test123 ->pass
test -> Fail
123test -pass
123 -> Fail
select * from dual where regexp_like ('test123','[0-9]')

Purvesh K wrote:
One of easiest ways:
with data as
select 'test123' col from dual union all
select '123test' from dual union all
select 'test' from dual union all
select '123' from dual
select *
from data
where regexp_like(col, '[[:digit:]]+[[:alpha:]]+|[[:alpha:]]+[[:digit:]]+', 'i');
COL    
test123
123test
Just a note - This will fail, if any characters like SPACE (or any non alpha numeric characters) appears in the string like..
with data as
  select 'test 123' col from dual union all
  select '123test' from dual union all
  select 'test' from dual union all
  select '123' from dual
select *
  from data
where regexp_like(col, '[[:digit:]]+[[:alpha:]]+|[[:alpha:]]+[[:digit:]]+', 'i');Edited by: jeneesh on Mar 5, 2013 12:04 PM
You could change like
where regexp_like(col, '[[:digit:]].*?[[:alpha:]]|[[:alpha:]].*?[[:digit:]]', 'i');

Similar Messages

  • At least one number and one English letter are required in the password.

    At least one number and one English letter are required in the password.

    Page of the router is not fully displayed

  • Finding percentage of one number and the latest in a column?

    Hello, I'm very new to numbers... like started an hour ago new. Anyway, I'm wanting to find the percentage of a one number and then dynamicly the newest number in a column. I'm entering my weight and wanting to find the percentage I lost from my starting weight. Thank you, Steven.

    Steve,
    Nice resolution! Here's my take on a solution, as I read your problem statement:
    First, Format the % Loss cell to % using the Format Bar or Cells Inspector. Then enter the formuals.
    Here are the formulas:
    Starting Wgt
    =INDEX(Wgt Data :: A:B,MATCH(MIN(Wgt Data :: A), Wgt Data :: A),2)
    Latest Wgt
    =INDEX(Wgt Data :: A:B,MATCH(MAX(Wgt Data :: A), Wgt Data :: A),2)
    % Loss
    =1-B/A
    Hope this works and that you keep the weight off
    Jerry

  • My ipad is stolen ,, and i want to reopen find my ipad application because as i know once the ipad switched off and switched on again the application needs to be reopened ,, any one can help me please to find my ipad again

    my ipad is stolen ,, and i want to reopen find my ipad application because as i know once the ipad switched off and switched on again the application needs to be reopened ,, any one can help me please to find my ipad again

    Stolen
    http://support.apple.com/kb/HT5668
    Erase iPad
    http://support.apple.com/kb/ph2701
    Lost Mode
    http://support.apple.com/kb/PH2700
    Reporting lost or stolen iPad
    http://support.apple.com/kb/HT2526

  • Can two accounts just use one macbook and one iphone.error occurred talking to the iTunes store

    I have two accounts(A and B), of course I just use one iphone and one macbook.
    but now ,the problem is,
    the account A can use xcode organizer to upload App,
    and the account B can't upload in the same MAC and Xcode,
    the error message is: error occurred talking to the iTunes store
    and the console print:  *** Error: An error occurred while deserializing the JSON request.  Error Message - Invalid JSON character read at index 0
    (of course if I change from account B to A, upload success)
    it cotinue for three days, of course there are many people have the same problem.
    must I buy another iphone ,another macbook,and install another xcode
    I am so sad.
    thank you

    the problem is ,  .ipa can't  upload by(in) account B
    I think the bug can be two possible list blow
          1.  the .ipa  is wrong
          2.  the account(B) is wrong.
    if   the .ipa is wrong  
    the .ipa can't upload  by any account (account A  or  account B,  just change the identifier and the sigh identity)
    but if the .ipa can upload success by  account A,
    so , the .ipa(program) is right.
    then, there is exist only one possible,   the account (B) is wrong,
    K T , do you thine my logic for this problem is right

  • How to  Trunc one number and Round another number in different row?

    Here is a sample where I take a percent of a number.
    <code>
    SELECT 40*.5 AONE, 'A' aname
    FROM DUAL
    UNION ALL
    SELECT 121*.5 AONE, 'B' aname
    FROM DUAL
    UNION ALL
    SELECT 121*.5 AONE, 'C' aname
    FROM DUAL
    UNION ALL
    SELECT 80*.5 AONE, 'D' aname
    FROM DUAL
    </code>
    this gives me
    20 A
    60.5 B
    60.5 C
    40 D
    I want to TRUNC one number and ROUND another number where the number has a
    "0.5" so I would have
    20 A
    61 B
    60 C
    40 D
    I will have more than 4 records, just trying to keep it simple.
    Suggestions?
    TIA
    Steve42
    Edited by: Steve42 on Dec 5, 2011 1:44 PM

    I missed you only want to truncate/round where value fractional part is .5:
    WITH SAMPLE_TABLE AS (
                          SELECT 40*.5 AONE, 'A' aname FROM DUAL UNION ALL
                          SELECT 121*.5 AONE, 'B' aname FROM DUAL UNION ALL
                          SELECT 121*.5 AONE, 'C' aname FROM DUAL UNION ALL
                          SELECT 80*.5 AONE, 'D' aname FROM DUAL
    SELECT  CASE MOD(ABS(AONE),1)
              WHEN .5 THEN
                        CASE MOD(ROW_NUMBER() OVER(ORDER BY CASE MOD(ABS(AONE),1) WHEN .5 THEN ANAME END NULLS LAST),2)
                          WHEN 1 THEN TRUNC(AONE)
                          WHEN 0 THEN ROUND(AONE)
                        END
              ELSE AONE
            END AONE,
            ANAME
      FROM  SAMPLE_TABLE
      ORDER BY ANAME,
               ROW_NUMBER() OVER(ORDER BY CASE MOD(ABS(AONE),1) WHEN .5 THEN ANAME END NULLS LAST)
          AONE A
            20 A
            60 B
            61 C
            40 D
    SQL> SY.
    Edited by: Solomon Yakobson on Dec 5, 2011 5:05 PM

  • I imported events from iphoto into aperture and aperture is showing 2 photos for each picture, one original and one edited although none of the photos from iphoto had been edited. Any idea why this has happened and what I need to do to prevent this.

    I imported several events for iPhoto into Aperture3 and in Aperture it shows two photos for each photo imported, one original and one edited although none of the photos imported were edited. Why has this happened and what do I need to do to prevent this in future. I have only recently got Aperture and am trying to learn as I go along using the Focal Press guide. Thanks for any help.

    Ir. Bob wrote:
    A photo that was rotated in iPhoto will also show up as iPhoto edited.
    This is not what I found to be the case in a recent experiment using iPhoto11- I did repeat it to be sure.
    https://discussions.apple.com/message/15586837#15586837
    Quickly, what I found is that only the ones I did actual adjustments on brought over two images.  Images that were simply rotated, had "quick fixes" or "Effects" did not bring in two images.  More importantly, among the ones with adjustments that did bring in two images, the ones with the keyword  "iPhoto Edited" appear to be nothing more than iPhoto's 6MB JPEG Previews.  The master was a 25MB RAW image.
    I don't know why some users are experiencing doubles on everything, but I recommend caution in deciding which ones to remove or you may find yourself deleting masters and keeping previews. 
    DLS

  • My welcome screen used to have just my name and an icon.  Now it has my name on one side and guest user on the other. where did it come from and how do I get rid of it?

    My welcome screen used to have just my name and an icon.  Now it has my name on one side and guest user on the other. where did it come from and how do I get rid of it?

    Either you enabled the guest user, or you enabled Find My Mac, which requires there to be an active guest account for a thief to log into, so that they'll connect to the internet and allow you to locate it.

  • I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up und one account.

    I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up under one account.

    You can have a different receiving email in the Messages app on each device : Settings > Messages > Receive At . I'm not sure that there is a different way to have the message only go to one device.

  • I am fed up with Spring and Apple passing me off to one another and neither will fix the problem. I am unable to receive a connection on my phone.

    I am fed up with Spring and Apple passing me off to one another and neither will fix the problem. I am unable to receive a connection on my phone.
    The internet goes out and I have to reset network setting each and every time. This is only a temporary solution which by the time I release the line with Spring or leave the apple store the issue is back. Sprint indicates that it is a know issue with the Iphone 5 and apple says it is a network issue as Sprint's network is not up to par with the Iphone and can not meet the expectations on the Iphone 5.
    I have attached a few picture, as you can see it clearly says I have 5 bars and 3g available but I have no connections what so ever.
    This issue affects all data and so I can not send or receive picture messages, use apps, or access the internet. The data goes in and out intermittently and it seems the phone chooses what I can and can't do.
    For example I can watch Youtube or Vevo videos but I can not access Facebook or Instagram.
    Is anyone else having this issue?
    I will soon loose my patience....
    I have reset my phone three time and have reset network and other setting mutltiple times.

  • How to connect new iMac to tv with a hdmi cord on one end and a thunderbolt on the other end

    how to connect new iMac to tv with a hdmi cord on one end and a thunderbolt on the other end

    You need a > Moshi Mini DP to HDMI Adapter with Audio Support - Apple Store (U.S.) to plug into the ThunderBolt port and an HDMI cable.

  • Hi. I currently have two iPad's and two iPhones and one Apple ID, I want to keep the current Apple ID on one iPad and one phone and set up another Apple ID for the second iPad and iPhone, is this possible?

    Hi. I currently have both my iPhone's and iPad's on one Apple ID and I was hoping to use one iPhone and one iPad with another Apple ID, does anyone know if this is possible and how I would do it.
    Thanks TMM39

    You should be able to. The only hiccup will be that any apps that you have purchased with the older ID you will have to repurchase with the newer ID to be able to keep using them.
    Though of course this actually depends on how you plan to use the IDs. For example, I had an Apple ID through iTunes a few years before I opened a .Mac/MobileMe account (what iCloud is now in case you are new to Apple). Thus, my iPhone and iPad actually have two IDs on them, one for iTunes/App Store, and one for anything associated with iCloud. I've never really had any problems assoctiated with having two IDs on one device. Usually just an extra step when I get a new device or have to restore either of them for some reason. Though I understand that this is probably not what you plan on doing, I thought I would use it as an example of what the IDs are really associted with on the devices.

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • My husband does not have an itunes account and wants to set one up and we only have the one computer. can you have two separate accounts? We want to set up separate iphones.

    My husband does not have an itunes account and wants to set one up and we only have the one computer. can you have two separate accounts? We want to set up separate iphones.

    How to use multiple iPods, iPads, or iPhones with one computer

  • I am trying to stop encryption in fire vault, but I keep getting the message, The target disk isn't eligible for reversion because it wasn't created by conversion or it is not part of a simple setup of exactly one logical and one physical volume.¨

    I am trying to cease encryption in fire vault, Mac os x lion 10.7 4
    I keep getting the message,
    ¨The target disk isn’t eligible for reversion because it wasn’t created by conversion or it is not part of a simple setup of exactly one logical and one physical volume.¨
    Please can someone advise the way to disable?
    Thank you.

    Are you using Boot Camp? See this discussion at MacRumors.
    Clinton

Maybe you are looking for

  • Error while calling standard OAF page from custom Oracle Form

    Hi, I am calling standard OAF page from custom oracle form using the following code. FND_FUNCTION.EXECUTE(FUNCTION_NAME=>'FUN_TRX_ENTRY_OUT_VIEW_BATCH', OPEN_FLAG =>'Y', SESSION_FLAG =>'N' , OTHER_PARAMS =>'&ViewBatchID = "' || NAME_IN('FUN_AGIS_LINE

  • Portege R835-P81 Blue Screen of Death (BSoD) Displays Repeatedly

    Hi all: I brought my Portege 1 months ago and it has been working very well until last night, while running normally, the Blue Screen of Death (BSoD) keeping display repeatedly. Symptom: whenever my Portege is turned on, after running for about 10-15

  • TS1363 Once again having trouble with my 6th gen nano not being recognized in ITunes on my Windows 8 computer

    Can't decide if the nightmare called Windows 8 is the culprit.  I'm reinstalling ITunes (for the 2nd time on this PC) and re-downloading all of my music to my computer. Hopefully I can get the new songs I purchased to show up on my IPod.  If not, tim

  • Hard Disc

    Hi All I have a problem where when I am trying to import photos into Aperture, the error message says I have insufficient disc space available, and it seems that others have the same as well. I have looked at the info on the file and it seems that th

  • Blur doesn't work in Kwin

    Just went back to KDE and am finding that Blur doesn't seem to work in kwin - Intel driver. I seem to remember it working just fine the last time I was on KDE. I couldn't find much documentation on this in the latest kde. Has anyone had the same and