all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Regexp replacement problem
@ 2013-09-28 15:05 JJ. Rétorré
  2013-09-28 16:17 ` Jens Teich
  2013-09-28 16:50 ` Andreas Röhler
  0 siblings, 2 replies; 4+ messages in thread
From: JJ. Rétorré @ 2013-09-28 15:05 UTC (permalink / raw)
  To: help-gnu-emacs


I want to be prompted for a replacement string for each `l'
  in 

\begin{tabular}{lrlllcc}

matching p{?cm}.
I tried 
 M-x replace-regexp <RET> l <RET> p{\?cm} <RET>

but it doesn't work (nor \? only).

Help me!

-- 
JJR.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Regexp replacement problem
  2013-09-28 15:05 Regexp replacement problem JJ. Rétorré
@ 2013-09-28 16:17 ` Jens Teich
  2013-09-28 18:45   ` JJ. Rétorré
  2013-09-28 16:50 ` Andreas Röhler
  1 sibling, 1 reply; 4+ messages in thread
From: Jens Teich @ 2013-09-28 16:17 UTC (permalink / raw)
  To: help-gnu-emacs

jj.retorre@gmail.com (JJ. Rétorré) writes:

> I want to be prompted for a replacement string for each `l'
>   in 
>
> \begin{tabular}{lrlllcc}
>
> matching p{?cm}.
> I tried 
>  M-x replace-regexp <RET> l <RET> p{\?cm} <RET>
>
> but it doesn't work (nor \? only).
>
> Help me!

For me it works as expected 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Regexp replacement problem
  2013-09-28 15:05 Regexp replacement problem JJ. Rétorré
  2013-09-28 16:17 ` Jens Teich
@ 2013-09-28 16:50 ` Andreas Röhler
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Röhler @ 2013-09-28 16:50 UTC (permalink / raw)
  To: help-gnu-emacs

Am 28.09.2013 17:05, schrieb JJ. Rétorré:
>
> I want to be prompted for a replacement string for each `l'
>    in
>
> \begin{tabular}{lrlllcc}
>
> matching p{?cm}.
> I tried
>   M-x replace-regexp <RET> l <RET> p{\?cm} <RET>
>
> but it doesn't work (nor \? only).
>
> Help me!
>

M-x query-replace ...

will prompt you.

When replacing just a string, no regexp is needed.

Otherwise

M-x query-replace-regexp ...






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Regexp replacement problem
  2013-09-28 16:17 ` Jens Teich
@ 2013-09-28 18:45   ` JJ. Rétorré
  0 siblings, 0 replies; 4+ messages in thread
From: JJ. Rétorré @ 2013-09-28 18:45 UTC (permalink / raw)
  To: help-gnu-emacs

Jens Teich <jensteich@t-online.de> disait le 09/28/13 que :

> jj.retorre@gmail.com (JJ. Rétorré) writes:
>
>> I want to be prompted for a replacement string for each `l'
>>   in 
>>
>> \begin{tabular}{lrlllcc}
>>
>> matching p{?cm}.
>> I tried 
>>  M-x replace-regexp <RET> l <RET> p{\?cm} <RET>
>>
>> but it doesn't work (nor \? only).
>>
>> Help me!
>
> For me it works as expected 

Indeed!
I was wrong with the keys bindings.
My apologies for the noise.

-- 
JJR.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-28 18:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-28 15:05 Regexp replacement problem JJ. Rétorré
2013-09-28 16:17 ` Jens Teich
2013-09-28 18:45   ` JJ. Rétorré
2013-09-28 16:50 ` Andreas Röhler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.