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

295
Views
JS Regex - non-capturing group not working

I am working on a regex filter, because it clutters our code, but I cant get it to stop capturing the tags.

What I want captured is bold <a class="anchorable" href="https://www.tiny.cloud/docs/plugins/opensource/paste/#exampleusingpaste_word_valid_elements">

I have a working PHP regex for this

/((<+[a-z]*\K)+\s)+(.*?)>/g

but it doesnt work on JavaScript. What Ive tried:

/(?:(<+[a-z]*)+\s)+(.*?)>/g

Ive been testing it on this page https://regexr.com/ (change from PHP regex to JS regex)

about 4 years ago · Juan Pablo Isaza
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!