Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
Glob pattern to match filenames that does not have "." character

What is the glob pattern to include filenames that end with .test.js but do not include filenames with additional . characters?

For example:

deviceFilter.test.js                      //pass
deviceFilter.offline.test.js              //fail
deviceFilter.nodata.test.js               //fail
deviceFilter.offline.nodata.test.js       //fail

With regex one can do ^[^.]*.test.js$ to achieve this. Is there any glob pattern equivalent? I have tried *(!.)*.test.js but this still passes all the examples above.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I think this should work for you

+(!(*.*)).test.js

Tested with this tool

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!