I have regex to parse all hash url in HTML content.
/(\#)([^\s]+")/g
HTML content will be as
Some text <a href="#some-hash1">some link</a>some content <a href="#some-hash2">some link1</a>
Expected is
#some-hash1, #some-hash2
But current regex is returning as (ending double come along with hash):
#some-hash1", #some-hash2"
I am unable to understand why its come along with double quotes. Any suggestion that will be very helpful.