So I have a regex like this -
[\w\s.<>/]* is [boom|box|cat]+[\w\s<>/]+[fun|lame][\w\s<>./]*
but this matches
<something>things/something> is brah <HELLO>loc</HELLO> suburb.
why?
[...] is a character class, it will match any individual character between the brackets, i.e. your [boom|box|cat] is identical to [abcotx|]. You want (boom|box|cat) and (fun|lame).
(?: ... ) instead of ( ... )