Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Need a regular expression to check the first digit

by GrandFather (Saint)
on May 19, 2021 at 04:24 UTC ( #11132726=note: print w/replies, xml ) Need Help??


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

Give us some code we can run. See I know what I mean. Why don't you?

Update: What do you expect /^[5]+$/ to match? What does each component of the expression do? To save us all a little time these are the interesting components:

  • ^
  • [5]+
  • $
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2021-10-26 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?