I don't know if Ruby regexps are really exactly the same as Perl
regexps, but, to me as a Perl programmer, this regexp looks
semantically identical to /AIX/, just with some added garbage to
irritate people who don't know enough about regexps... ;-)
No alternative or other grouping construct is used, thus the
capture vs. collection functionality is irrelevant. The m flag
modifier is turned off by default, no need to turn it off manually.
The regexp has neither whitespace nor comments, thus the state of
the x flag modifier is irrelevant either.
But then, that's just from the viewpoint of an experienced Perl
programmer; maybe Ruby is different here.
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email:
jsc...@acm.org