Nick Sabalausky, el 8 de agosto a las 13:31 me escribiste: > "Norbert Nemec" <norb...@nemec-online.de> wrote in message > news:i3lq17$99...@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".