JSFiddle - React, Tailwind, and code Playground

regex to find anchors without hrefs

by ian_smithz

HTML

<a(?=\s|>)(?!(?:[^>=]|=(['"])(?:(?!\1).)*\1)*?\shref=['"])[^>]*>.*?<\/a>