help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to write 'beginning of line' in a String?


From: Thorsten Jolitz
Subject: Re: Possible to write 'beginning of line' in a String?
Date: Tue, 02 Apr 2013 11:20:31 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux)

Andreas Röhler <andreas.roehler@easy-emacs.de> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]