Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Need a regular expression to check the first digit

by AnomalousMonk (Bishop)
on May 19, 2021 at 06:20 UTC ( #11132728=note: print w/replies, xml ) Need Help??


in reply to Need a regular expression to check the first digit

Further to GrandFather's remarks:   The regex /^[5]+$/ does not match the string '503009496', but is there any other string it would match? What about the strings

5 55 555 555555555

If you find some strings that match, how would they and the strings you know do not match interact with the regex components mentioned by GrandFather? Please see perlre, perlretut, perlrequick and perlreref.


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-05-25 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?