At 17.13 -0500 2000.03.12, Ronald J Kimball wrote: >> if (s/\b(\d)(\d\d)(19)(\d\d)/\b0\1\/\2\/\4,/g) { > ^^ >> } else { >> (s/\b(\d\d)(\d\d)(19)(\d\d)/\b\1\/\2\/\4/g) >\b is the escape character for backspace. >(Except in regexes, where it's a word-boundary assertion.) >[Except in character classes, where it's a backspace again.] For clarification, the second part of a substitution regular expression is NOT a regular expression at all. So the \b in the first part of a substitution regex means word boundary (except in a character class, where it is a backspace) and in the second part of the regex it is a backspace. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org