Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Need a regular expression to check the first digit

by GrandFather (Saint)
on May 19, 2021 at 04:24 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (9)
As of 2024-03-28 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found