I want to find string after #
, I have a problem if #a
or #a <div>..
are both working to return a
, but if #a<div>..
will return a<div>
.
how to avoid if following string is <div>
or <br>
or <p>
than just break,
e.g
#a<div>bc
- a
https://regex101.com/r/xD1vN0/1
var re = /#([^#\s]*)/g;
,