I think you misunderstood the use of parenthesis with alternation.
Parenthesis are used for two purposes: to capture sub-pattern you want to reuse or to group parts of the pattern, either to apply quantifiers to a sequence of characters, or to limit alternation to a certain part of the pattern. Example of the latter:
"/H(i|ello)/"
Here both pattern would match either "Hi" or "Hello", but if we omitted the parenthesis, the latter would match "Hi" or "ello".
what you are doing is:
"/H(i)|(ello)/"
which would match "Hi" or "ello" as well, with the only difference that you can reuse 'i' and 'ello' as matches of a sub-pattern.
And a lot of backslashes seem to have been stripped by the forum, or are they missing?
btw \w includes digits already, no need to use [\w\d].