This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: OT: Using sed - guru help wanted.
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Hannu E K Nevalainen <garbage_collector at telia dot com>
- Cc: cygwin at cygwin dot com
- Date: Mon, 20 Oct 2003 15:26:45 -0400 (EDT)
- Subject: Re: OT: Using sed - guru help wanted.
- References: <NGBBLLIAMFLGJEOAJCCEKEILDFAA.garbage_collector@telia.com>
- Reply-to: cygwin at cygwin dot com
On Mon, 20 Oct 2003, Hannu E K Nevalainen wrote:
> [snip]
> HOW do I achieve that? ( \s = any ws, \S = any non ws )
>
> Obviously \(.*\) grabs/includes the last space. My brain has stoppped
> working, so right now I can't work around that :-I
Reversed character lists, e.g. '[^ ]', should work portably.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/