From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: q8e192@yahoo.com (Henry Chan) Newsgroups: gmane.emacs.help Subject: replacing whitespace (regexp question) Date: 17 Feb 2003 10:28:26 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <8c5b0e7f.0302171028.6f43c004@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045506705 28924 80.91.224.249 (17 Feb 2003 18:31:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2003 18:31:45 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18kq3L-0007WL-00 for ; Mon, 17 Feb 2003 19:31:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18kq2W-0003by-01 for gnu-help-gnu-emacs@m.gmane.org; Mon, 17 Feb 2003 13:30:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 8 Original-NNTP-Posting-Host: 208.181.69.181 Original-X-Trace: posting.google.com 1045506506 26593 127.0.0.1 (17 Feb 2003 18:28:26 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 17 Feb 2003 18:28:26 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:110294 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6796 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6796 How do I replace the whitespace at the beginning of a line with nothing i.e. I want to perform something like: $str =~ s#^\s+##; thx, Henry q8e192@yahoo.com