Stephen> I suppose that the '?' construct is understood by basically all
Stephen> seds? Using '\{0,1\}' instead of '?' seems like asking
for
Stephen> trouble....
Switching to ? doesn't seem to help:
% echo $with_error_checking | /usr/bin/sed -e
's/^[a-z]*\(,\(.*\)\)\{0,1\}$/\2/'
none
% echo $with_error_checking | /usr/bin/sed -e 's/^[a-z]*\(,\(.*\)\)?$/\2/'
none
% echo $with_error_checking | /usr/bin/sed -e 's/^[a-z]*\(,\(.*\)\)\?$/\2/'
none
Also fails with /usr/xpg4 version of sed:
% echo $with_error_checking | /usr/xpg4/bin/sed -e
's/^[a-z]*\(,\(.*\)\)?$/\2/'
none
Feel free to suggest other alternatives for me to try.
Skip
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta