Help for this page

Select Code to Download


  1. or download this
    $re = qr[\d+\D+Y\D(\d|$)];;
    
    ...
    
    print '\\files\builds\data\M9998SBQCACSXD30401S' =~ $re ? 'yes' : 'no'
    +;;
    no
    
  2. or download this
    $re = qr[
        \d+    # after the first (and any subsequent digits )
    ...
        \D     # followed by only one more non-digit
        (\d|$) # before another digit or end of string
    ]x;