[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
- Possible to write 'beginning of line' in a String?, Thorsten Jolitz, 2013/04/02
- Re: Possible to write 'beginning of line' in a String?, Teemu Likonen, 2013/04/02
- Re: Possible to write 'beginning of line' in a String?, Andreas Röhler, 2013/04/02
- Re: Possible to write 'beginning of line' in a String?,
Thorsten Jolitz <=
- Re: Possible to write 'beginning of line' in a String?, Óscar Fuentes, 2013/04/02
- Re: Possible to write 'beginning of line' in a String?, Andreas Röhler, 2013/04/02
- Re: Possible to write 'beginning of line' in a String?, Thorsten Jolitz, 2013/04/02
- Message not available
- Re: Possible to write 'beginning of line' in a String?, Pascal J. Bourguignon, 2013/04/02
- Re: Possible to write 'beginning of line' in a String?, Thorsten Jolitz, 2013/04/03