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:20:31 +0200 Message-ID: <87zjxhz3ts.fsf@gmail.com> References: <877gkl1jgh.fsf@gmail.com> <515A93DE.9010306@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1364894467 31922 80.91.229.3 (2 Apr 2013 09:21:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 09:21:07 +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:21:35 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 1UMxPK-0005VN-1N for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 11:21:34 +0200 Original-Received: from localhost ([::1]:55782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxOv-0003or-D4 for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 05:21:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxOV-0003oK-IU for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:20:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMxOU-0001Hx-Cy for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:20:43 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxOU-0001Hn-6o for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:20:42 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UMxOr-0005BB-0O for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 11:21: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:21: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:21:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 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:nlRlyZ0Lpa8b57BnhUgZb01UCQQ= 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:89883 Archived-At: Andreas Röhler writes: > Am 02.04.2013 09:26, schrieb Thorsten Jolitz: >> >> Hi List, >> >> what is the (or rather - is there a) string equivalent to regexp "^abc"? >> "\nabc" is not quite what I want. >> > > You may express "Beginning of line followed by string 'abc'" in > different ways. Depends from usage, your needs. > > rx macro delivers that wording of regexps > > Maybe tell what's inconvenient with "^abc" I would need something that can be inserted as string, but is matched only at beginning of line. ,----------------- | (insert "^abc ") | ^abc `----------------- is not what I want, and "abc ", when used as regexp, is obviously matched anywhere. -- cheers, Thorsten