0

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)

0 Answers0