http://qs321.pair.com?node_id=1218001


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.