- 论坛徽章:
- 0
|
seems no problem with my Cygwin, But my RE is not same as yours.
fang@bash ~
$ echo "'你们好?*===============*/" | sed "s/^\('.*?\)\(.*\)$/\1\n\2/"
'你们好?
*===============*/
fang@bash ~
$ sed --version
GNU sed version 4.1.4
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.
fang@bash ~
$ uname -a
CYGWIN_NT-5.1 bash 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin
fang@bash ~
$ |
|