Paul Eggert wrote:
"Peter O'Gorman" <[EMAIL PROTECTED]> writes:
% expr "Xpowerpc-apple-darwin8.1.0" : 'X[^--]*-[^--]*-\(.*\)'
How about the following instead? I'd rather use a simpler regexp if
it works. Can you please verify that this works on the broken
implementation? Thanks.
$ expr 'Xpowerpc-apple-darwin8.1.0' : '.*-\(.*\)'
darwin8.1.0
$ expr 'Xpowerpc-apple-darwin8.1.0' : '.*-\(.*\)-.*'
apple
$ expr 'Xpowerpc-apple-darwin8.1.0' : 'X\(.*\)-.*-'
powerpc
Yes, this works also. Thank you.
Peter
--
Peter O'Gorman - http://www.pogma.com