From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from research.att.com ([192.20.225.2]) by hawkwind.utcs.toronto.edu with SMTP id <2758>; Sun, 21 Feb 1993 23:55:16 -0500 From: rob@research.att.com Date: Sun, 21 Feb 1993 23:48:41 -0500 To: sam-fans@hawkwind.utcs.toronto.edu Message-Id: <93Feb21.235516est.2758@hawkwind.utcs.toronto.edu> How about: y/^ +/ x/ +/ c/ / that's using ^ again; i thought the exercise was to avoid it. at least, that is the exercise i've been working on. when i made my suggestion x s2/ +/ /g i implicitly assumed, as i think did the original poster, that each line began with white space. as i sit here now, i can't find a clean-enough-to-use version that doesn't use ^. the magic thing about ^ is that it works at the beginning of the file; otherwise i could cheat. the poster said he had whole lines, hence: -#1,. x/\n?.+/ v/\n/ x/ +/ c/ / but this is already too silly. -rob