Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Regex to match 20 chars of some digits followed by some spaces

by BrowserUk (Patriarch)
on Dec 19, 2003 at 06:53 UTC ( [id://315755]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    m[^ \d (?: (?<! \x20 ) \d | \x20 ){19} $]x
    
  2. or download this
    print m[^ \d (?: (?<!\x20) \d | \x20 ){19} $]x 
        ? 'Yes:' . $_ 
    ...
    Yes:1234512345
     No:123 451 2345
     No:
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://315755]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2025-01-18 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (56 votes). Check out past polls.