From: <boj...@dd...> - 2006-03-25 11:51:21
|
Jorgen Schaefer <fo...@fo...> writes: > I know I'm not really involved anymore and such, but IIRC we made > that regexp specifically like this if anyone ever wanted to send > leading whitespace to the server - it's a _QUOTE_ command after all, > and meant not to meddle with the arguments. But I guess some people > think some meddling is ok, so that's mostly a matter of taste. What forcer said. I like this variant: (string-match "^ ?\\(.*\\)" line) If there is a leading space character it is removed. Anything else, like tabs, is left alone. -- Johan Bockgård |