tolf and detab

Leandro Lucarella luca at llucax.com.ar
Sun Aug 8 14:28:59 PDT 2010


Nick Sabalausky, el  8 de agosto a las 13:31 me escribiste:
> "Norbert Nemec" <Norbert at Nemec-online.de> wrote in message 
> news:i3lq17$99u$1 at digitalmars.com...
> >I usually do the same thing with a shell pipe
> > expand | sed 's/ *$//;s/\r$//;s/\r/\n/'
> >
> 
> Filed under "Why I don't like regex for non-trivial things" ;) 

Those regex are non-trivial?

Maybe you're confusing sed statements with regex, in that sed program,
there are 3 trivial regex:

regex	replace with
 *$     (nothing)
\r$	(nothing)
\r	\n

They are the most trivial regex you'd ever find! =)

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Vaporeso sostenía a rajacincha la teoría del No-Water, la cual le
pertenecía y versaba lo siguiente: "Para darle la otra mejilla al fuego,
éste debe ser apagado con alpargatas apenas húmedas".


More information about the Digitalmars-d mailing list