url-regex-safe icon indicating copy to clipboard operation
url-regex-safe copied to clipboard

Capture group support?

Open oguzgelal opened this issue 4 years ago • 0 comments

In order to do things like:

escapeHTML(text).replace(
  urlRegexSafe(),
  '<a href="$1" target="_blank" rel="noreferrer noopener">$1</a>'
)

oguzgelal avatar Nov 05 '21 10:11 oguzgelal