[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp on emacs how to...
From: |
Álvar Ibeas |
Subject: |
Re: regexp on emacs how to... |
Date: |
Mon, 1 Sep 2014 12:38:46 +0200 |
MIME-Version: 1.0
Content-Type: text/plain
\[-[A-Z]*?[^]A-Z]+?[^]]*?-\]
It misses at least those occurrences where the character ] is in the inserted
text.
Date: Mon, 01 Sep 2014 12:38:30 +0200
In-Reply-To: <0f557f31-c018-4844-b852-d8be48dda000@googlegroups.com> (renato
pontefice's message of "Mon, 1 Sep 2014 03:11:17 -0700")
Message-ID: <87egvvr5g9.fsf@alveinte.minas.unican.es>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
--text follows this line--
<renato.pontefice@gmail.com> writes:
> ok, this is a right code:
> #+BEGIN_EXAMPLE
> noscenza e competenza, che in }{\rtlch\fcs1 \af0 \ltrch\fcs0
> \f40\fs22\insrsid15731996\charrsid7868964 [-DATE-]}{\rtlch\fcs1 \af0
> \ltrch\fcs0 \f40\fs22\insrsid15731996 prot }{\rtlch\fcs1 \af0 \ltrch\fcs0
> \f40\fs22\insrsid15731996\charrsid13987552 [-TIME-]}{\rtlch\fcs1 \af0
> \ltrch\fcs0 \f40\fs22\insrsid15731996 Il/la sig
> #+END_EXAMPLE
>
> this is an example with problems
> #+BEGIN_EXAMPLE
> noscenza e competenza, che in }{\rtlch\fcs1 \af0 \ltrch\fcs0
> \f40\fs22\insrsid15731996\charrsid7868964 [-DAT{\rtlch\fcs1 \af0
> \ltrchE-]}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f40\fs22\insrsid15731996 prot
> }{\rtlch\fcs1 \af0 \ltrch\fcs0
> \f40\fs22\insrsid15731996\charrsid13987552 [-TI
> ME-]}{\rtlch\fcs1 \af0 \ltrch\fcs0 \f40\fs22\insrsid15731996 Il/la sig
> #+END_EXAMPLE
>
> In the second example, my variable ([-DATE-] and [-TIME-], are interrupted:
> - in [-DATE-] variable, by rtf code
> - in [-TIME-] variable, by a a line feed
>
> in both example, the parser that try to substituite variable, fails, becausae
> it find some dirty text, between the start [- and the end -] of variable.
>
> So I need to detect that occurence.
> The best thing would be to detect JUST the occurence of variable that are not
> well formatted (as in example 1
>
> I think regexp could do that, but I don't know how...
>
> Renato
- Re: regexp on emacs how to..., renato . pontefice, 2014/09/01
- Re: regexp on emacs how to..., Nicolas Richard, 2014/09/01
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: regexp on emacs how to..., renato . pontefice, 2014/09/03
- Re: regexp on emacs how to..., renato . pontefice, 2014/09/03
- Re: regexp on emacs how to..., Nicolas Richard, 2014/09/03
- Message not available
- Re: regexp on emacs how to..., Renato Pontefice, 2014/09/04
- Re: regexp on emacs how to..., Nicolas Richard, 2014/09/05
- Message not available
- Re: regexp on emacs how to..., Renato Pontefice, 2014/09/10
- Re: regexp on emacs how to..., Nicolas Richard, 2014/09/10