"Craig Berry" schreef: > Replacing "-" with "!" as the match delimiter changed the > interpretation of C<$\-> so that the backslash no longer escapes the > minus sign but now sidles up to the dollar sign to function as the > special variable C<$\>. Yikes. > Whereas before we were inadvertently getting > the special variable C<$-> interpolated, we are now inadvertently > getting the special variable C<$\> interpolated. Yikes. > I'm pretty sure the original intention for the character class was to > match word characters, dollar signs and minus signs, not word > characters, a special variable, and minus signs. Or get rid of the interpolation of special variables inside character classes. Take, inside a character class, any $\b as a "$" character, so [$-] and [$\-] and [\$-] and [\$\-] (and the [-$] variants) are all the same two-character class. -- Affijn, Ruud "Gewoon is een tijger."Thread Previous | Thread Next