Regluar expression: at least one number AND at least one capital letter.

How to write regular expression to determine rule:
1) input string must contain at least one number. For example '0A1' contains 2 numberic symbols, but 'Abc' doesn't contain. At least one numeric symbol must occur.
2) input string must also contain one capital letter. for example '0A1' contains capital A, but '0a1' doesn't. At least one capital letter must exist in
Bot 1) and 2) must be true for input string.
How to write such regular expression?

Seems it still is not correct, because 'Test123' is not outputted:Be aware that there are NLS issues:
SQL> alter session set nls_language=english
Session altered.
SQL> with t as (
select '01A' str from dual union all
select '01a' from dual union all
select 'anc' from dual union all
select 'ABC' from dual union all
select 'A3C' from dual union all
select '3Ä' from dual union all
select 'Ä3' from dual union all
select '4Ca' from dual union all
select 'Test123' from dual union all
select 'aTest123' str from dual union all
select 'A423' from dual
select * from t where regexp_like(str, '([A-Z]+\d+)|(\d+[A-Z]+)')
STR    
01A    
A3C    
4Ca    
A423   
4 rows selected.
SQL> alter session set nls_language=german
Session altered.
SQL> with t as (
select '01A' str from dual union all
select '01a' from dual union all
select 'anc' from dual union all
select 'ABC' from dual union all
select 'A3C' from dual union all
select '3Ä' from dual union all
select 'Ä3' from dual union all
select '4Ca' from dual union all
select 'Test123' from dual union all
select 'aTest123' str from dual union all
select 'A423' from dual
select * from t where regexp_like(str, '([A-Z]+\d+)|(\d+[A-Z]+)')
STR    
01A    
A3C    
3Ä     
Ä3     
4Ca    
Test123
aTest123
A423   
8 rows selected.

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

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • 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

  • 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

  • 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');

  • Is there any way i can receive a text from one number and reply to another on the same conversation?

    I have a friend who has 2 phone numbers, he sends texts from one and i have to reply to the other one.
    Is there any way i can configure the SMS conversation so: it receives texts from his 1st number and when i reply it goes to the 2nd number?
    Thank you

    I don't think it is possible to do what your friend is asking.
    He would need to call his phone carrier.

  • Changed my number and need old one off icloud

    How do I delete my old numer off my icloud? I chnged my phone number and when I text other people that have an iphone it still shows up as my old number

    Welcome to the Apple Community.
    You can change the address or number you use for messages at settings> messages> send & receive.

  • How can I align two different text row in the same table in two different way (one centered and the other one on the left)?

    Hi,
    I want to center two different text row that are in the same table but one on the center and the other one on the left. I put a <span> tag hoping that it has been overwhelmed the table's class properties The .bottomsel's font-family and the .Cig84's font-family and colour work but the text-align don't: they're both on the left.
    These are my source and CSS codes:
    Source:
    <table width="600" border="0">
      <tr>
        <td class="bottomref"><p><span class="bottomsel">| <a href="index.html" target="_self">Main</a> | <a href="about.html" target="_self">About</a> | <a href="clients.html" target="_self">Clients</a> | <a href="contact.html" target="_self">Contact</a> |</span><br />
          <span class="credits">Credits: <span class="Cig84">Cig84</span></span></p></td>
      </tr>
    </table>
    CSS:
    .bottomsel {
      text-align: center;
      font-family: Georgia, "Times New Roman", Times, serif;
    .credits {
      text-align: left;
    .Cig84 {
      color: #F00;
      font-family: "Comic Sans MS", cursive;

    Use paragraph tags with CSS classes.
    CSS:
         .center {text-align:center}
         .left {text-align:left}
    HTML:
    <table width="600" border="0">
      <tr>
        <td class="bottomref">
              <p class="center">This text is center aligned</p>
              <p class="left">This text is left aligned</p>
        </td>
      </tr>
    </table>
    Nancy O.

  • More Than One Website and More Than One Column

    Hi. I have two questions.
    1. I have two websites on my iWeb - one for me and one for a company I'm making a website for. I only want to upload the one for me onto my .Mac account, but I don't want to delete the other site. How do I get only one site uploaded without deleting one?
    2. How do I have my text box divided into two columns? I don't want to wind up with a rather long list of items.
    Thank you.

    Andlabs,
    How do I get only one site uploaded without deleting one?
    Separate your sites into individual Domain files. Instructions for this can be found here.
    How do I have my text box divided into two columns?
    iWeb is no where near Word when it comes to handling text; in fact, it is frustratingly inept. My suggestion would be to use multiple text boxes placed next to one another; you can eliminate the lines that define the text boxes in Inspector, which will give a good 'illusion' of columns. (Stroke/none).
    Mark

  • How to Plot number and string in one row (data logger counter via MODBUS) ?

    hi all i made data log quantity using Digital Counter via modbus (RS-485) to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Solved!
    Go to Solution.
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Hi rhiesnand,
    right now you add 2 new rows to your array.
    The solution is to concatenate both row parts to one bigger 1D array before adding that array as new row to your 2D array!
    Like this:
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Indesign suddenly asking for serial number and rejecting the one I have

    Hi,
    This question is very similar to that of act_writ from 19/10/2014 ("Sudden trouble opening InDesign - serial number rejected")
    - I am asking again because that question was not answered.
    We have InDesign CS6 on a Mac, purchased last year with a student license. It always worked and opened the program without asking for a login. All of a sudden yesterday it asked for a login and the serial number, but it rejects the serial number I have received when purchasing the product.
    I am still a student so it should not have expired.
    Any help would be appreciated - I am pretty desperate as the customer support agent I contacted could not help me.
    Thanks!

    A serial should be ok if it was ok.
    Exceptions are: If the serial was used several times in a way which is causing doubts of its legal use, then will Adobe deactivate it (e.g. use of several serial in connection with illegal copies) or when Adobe shuts down the activation server as it was done with CS2, but the user could replace it with a common serial.
    Normal, with a running program it will never ask for a serial, only if the user clean up his computer and delete some folder and files where activation files are hidden. But in that case the serial should be inserted with the next start or in the wort scenario you might uninstall all programs and install them again to be able to enter the serial.
    For non English (including UK and US and International) versions users the serial can also fail when the localisation files are deleted.
    Maybe that you exchange the serial with some other number or a number from another product which was bundled?

  • I never got a serial number and it wants one

    photoshop is asking for a serial number for my trail i never got on what do i do?

    Crystal,
    Are you using creative cloud or a stand alone version of software? Did you click a button that said "try" to start it?
    Here are the instructions for downloading the creative cloud trial:
    Download and install trials
    I want to download a trial.
    I need instructions for downloading and installing a trial.
    I need to troubleshoot my download or install.
    Pattie

  • Copy purchase order number and date from one sales order to other sales ord

    Hi,
    I am creating sales order in va01. here i am entering purchase order number (p100) and date. Sales order number ex: 42000
    I am creating another sales order with reference to 42000. when creating sales order with reference to 42000, purchase order number (p100) and date has to be copied automatically from that order.
    Can anyone please give me a solution?
    Thanks in advance
    Babu

    Dear Babu,
    Currently, PO number is being mentioned in copy routine 101 but this  
    field VBKD-BSTKD is being cleared out.                                
    If we check this routine code:                                                                               
    FORM DATEN_KOPIEREN_101.                                              
    Data which is not copied                                            
    Pricing date for consignment issue by external service agent from   
    the scheduling agreement                                            
      IF CVBAK-VBTYP CA VBTYP_LP_EDL.                                     
        CLEAR VBKD-PRSDT.                                                 
      ENDIF.                                                              
    PO data should not be copied                                        
      CLEAR: VBKD-BSTKD,                    <<<<<                         
             VBKD-BSTDK,                                                  
    In order to achieve your requirement, you need to consider creating you
    own copying routines for VBKD fields copying standard copying routines
    (for example copying routine 101) according your business requirements
    and change them via transaction VOFM, in order to:                    
      - deactivate the LOCAL: statement                                   
      - delete the clear statements                                                                               
    Once you have created those two routines to match your business needs,
    you can insert them in transaction VTAA, so the sales order will copy 
    the PO date at item level.                                            
    I hope I was able to help you.
    Kind regards,
    Zsuzsanna

  • Tech Support allowed me to download CS2, but now I need a serial number and the old one doesn't work.

    How do I get the serial number for this downloaded "tech support" version of CS2?  I have CS1, but it's had problems so tech support got me to download this CS2, but it won't accept the serial number on the box of my CS1. How do I get the right serial number?

    Thanks Ned. I also had Adobe Tweet me this link: https://www.adobe.com/cfusion/entitlement/index.cfm?e=cs2_downloads.  The problem now, though, is that the dialogue box that asked for the serial number has now gone. When I go to open up Photoshop, I just get a message, "Could not complete your request because of missing or invalid personalization information."  When I click "OK", it just shuts down.  Strangely, when I open GoLive, it just works!

Maybe you are looking for

  • How to send meeting request by mail adapter

    Hi, I'm doing scenario from file to mail. I have a sender file adapter to pick up the meeting request standard format file(*.ics) from file system. On the other side I have a receiver mail adapter to send mail. What I want to do is the sent mail by m

  • How can I convert rm file to .mov?

    Hi,guys Can anyone tell me what software is used for converting RM file to MOV file? Thanks

  • Checking Fonts = Crash in Acrobat 10.1.4

    I have uninstalled, run the cleaner, reinstalled, and tested at version 10.  I can print PDFs without an issue.  Then, when I update to 10.1.4, whenever I print a PDF it hangs at the "Checking Fonts" phase.  Also, when I open Distiller, it also crash

  • How do I delete email without opening it?

    I can't seem to delete an email without opening it, and I'm worried about malware and all that. How do I delete an email without it getting opened? I've tried selecting it with another message and then deleting the group, but it still opens. Someone

  • Axis labels with clusters of stacked columns

    I've created a ColumnChart that contains clusters of stacked columns.  Each of the 6 clusters contains 3 stacked columns. The ColumnChart creates the chart nicely (thanks to the dataFunction property), but the xAxis only displays the cluster label (s