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

Re^2: Regex to detect file name

by Anonymous Monk
on Jul 05, 2018 at 21:31 UTC ( #1218001=note: print w/replies, xml ) Need Help??


in reply to Re: Regex to detect file name
in thread Regex to detect file name

thats a waste of resources
/^\w[\w\.]*$/

Replies are listed 'Best First'.
Re^3: Regex to detect file name
by Anonymous Monk on Jul 06, 2018 at 02:08 UTC
    This is not a game of Name That Tune. There are no brownie-points for doing it in one regex versus two. If it does the job, is clear, and easy to maintain, Just Do It.

      As if we needed any further proof that you don't actually know how to think like an engineer.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2021-10-22 15:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?