From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Possible to write 'beginning of line' in a String? Date: Tue, 02 Apr 2013 11:22:31 +0200 Message-ID: <87y5d1z3qg.fsf@gmail.com> References: <877gkl1jgh.fsf@gmail.com> <87d2ud73nq.fsf@imladris.arda> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364894701 1992 80.91.229.3 (2 Apr 2013 09:25:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 09:25:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 11:25:29 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UMxT5-00007S-EB for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 11:25:27 +0200 Original-Received: from localhost ([::1]:56589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxSg-0004d7-PA for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 05:25:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxSS-0004d1-UC for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:24:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMxSR-0002hB-Na for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:24:48 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxSR-0002h0-HX for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:24:47 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UMxSj-0008H4-Q5 for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 11:25:05 +0200 Original-Received: from g231232039.adsl.alicedsl.de ([92.231.232.39]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Apr 2013 11:25:05 +0200 Original-Received: from tjolitz by g231232039.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Apr 2013 11:25:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231232039.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:j0QP5dGvrEeudE7dRyHC9a1PZnM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89884 Archived-At: Teemu Likonen writes: > Thorsten Jolitz [2013-04-02 09:26:54 +0200] wrote: > >> what is the (or rather - is there a) string equivalent to regexp >> "^abc"? "\nabc" is not quite what I want. > > I think "^" should work but there is also "\`". Actually, in Lisp > strings you would write "\\`". But this is still regexp syntax, when used as a string "^" and "\`" are just printed like other chars. -- cheers, Thorsten