1°) PHP, Javascript and possibly other languages like Perl allow you to do that, but mIRC doesn't. It would be a great feature suggestion laugh

2°) What you get is a pattern compilation error that always makes $regex return 0. PCRE (the regex engine) just can't handle [], it seems.