groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Re: What's missing for Unicode support of groff?


From: Zvezdan Petkovic
Subject: Re: [Groff] Re: What's missing for Unicode support of groff?
Date: Sun, 11 Dec 2005 22:46:11 -0500
User-agent: Mutt/1.4.2i

On Mon, Dec 12, 2005 at 12:36:06AM +0100, Bernd Warken wrote:
> 
> address@hidden schrieb am 12.12.05 00:12:28:
> > 
> > On the whole, for maximum portability, I'd be inclined to adopt the syntax 
> > suggested by Zvezdan, i.e.
> > 
> >     sed -e 's/^.* \([^ ]\{1,\}\)$/\1/' -e '1q'
> > 
> The \{...\} construct might be critical as well.  So the best way might be to
> replace c+ or c\{1,\} by cc*
> 
>   sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'
> 

POSIX sed has \{...\}.
I'm not aware of any sed implementation with which it doesn't work.
However, I'm currently able to test it only on Solaris, HP-UX, Linux and
OpenBSD.
Do you know of any example where it doesn't work?

Otherwise we might go even deeper and say that \(...\) is questionable,
etc.  But I think there's no need for it.
The expressions \{...\} and \(...\) is a part of BREs (Basic Regular
Expressions) for a long time.

Just my two cents.

Best regards,

        Zvezdan Petkovic




reply via email to

[Prev in Thread] Current Thread [Next in Thread]