In article <msvimd$tqo$
1...@speranza.aioe.org>,
Heh heh - good advice.
But the reason I posted was because I've solved this problem so many times
over the years, and each time, I have to ask myself about the precedence
rules. I seem to remember there being some case(s) where it does matter
and you have to parenthesize in order to get what you want.
Oh yeah, now I remember! The weird case is when you do something like:
/^something|somethingElse$/
Now, that matches either:
/^something/
or:
/somethingElse$/
And not:
/^(something|somethingElse)$/
As was probably intended.
But, in the instant case, where we are looking for leading or trailing
spaces, the non-parenthesized form is correct. So, looks like problem
solved.
--
"If our country is going broke, let it be from
feeding the poor and caring for the elderly.
And not from pampering the rich and fighting
wars for them."
--Living Blue in a Red State--