I'd like to determine if a string contains a substring not enclosed by "<>". For example,
<image src=abc> -> false
<image src=abc><image src=def> -> false
<tag>hello</tag> -> true
<image src=abc>hello -> true
I know I can do the following:
!_.isEmpty(String(input).replace(/<[^>]+>/gm, '')), but wondering if there's a better way, using regex.test