[Omaha.pm] /AAA|BBB/

Andy Lester andy at petdance.com
Thu Feb 2 10:27:46 PST 2006


On Feb 2, 2006, at 8:25 AM, Jay Hannah wrote:

> Andy Lester wrote:
>>> (2) What does this print (what does adding parens change)?:
>>
>> Adding parens doesn't change anything as far as what matches or
>> doesn't.  It only captures the match.
>
> Sure it does, sometimes. Parens allow for multi-character control  
> of the | character while matching. That's why I always use them.

I meant in the two examples given, of /AAA|BBB/ and /(AAA|BBB)/

--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance





More information about the Omaha-pm mailing list