On Jan 19, Troy May said: >I've tried some other formats with brackets, parenthesis, etc. Nothing else >works.
You've done something wrong, then. If you use <, {, (, or [, you match it up with its mirror image, >, }, ), or ]. Any other NON-word NON-whitespace character can be used, and is matched up with itself. If you use <>, {}, (), or [] for something like s/// or tr///, you can use another set for the second half; in fact, you can use a non-pairing set for the second half. Here are a wealth of examples. s%%% s&&& s()() s(){} s<>// s[]!! s,,, s>>> s()}} Notice those last two examples. s>>> uses ">" as the delimiter, NOT "<". That means that it's just like s/// -- you use the same character three times. With s()}}, I've used () as the first pair, and so I'm allowed to use another set for the second pair. I could have used a matching set, but instead I used }, so I have to match it with }. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]