The regex parser has some rather convoluted heuristics that it follows to decide whether $ or @ is followed by a variable name. One side effect of this is that /[$]/ is an error.
The only real documentation of this deep magic is in the source code (simply search for "weight" as it is only used on that code -- in toke.c, BTW).
- tye (but my friends call me "Tye")In reply to (tye)Re: @ in regex, or not?
by tye
in thread @ in regex, or not?
by JPaul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |