It might well be that !=~ should be this: =~. See Corion's question re the logic.
UPDATE: Forget it, I did not read the OP's question carefully enough...
In reply to Re^2: Matching text in a string
by hdb
in thread Matching text in a string
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |