[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp on emacs how to...
From: |
Thorsten Jolitz |
Subject: |
Re: regexp on emacs how to... |
Date: |
Sun, 31 Aug 2014 00:17:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
renato.pontefice@gmail.com writes:
> Hi,
> I need a regexp, that can help me, on a particular need.
>
> I have a file in .rtf format.
> Inside it, with emacs, i insert some code.
>
> All the code that I insert, start with [- and ends with -]
>
> betwwen this two tags I have capital letters, without space and line
> breack.
>
> I would have a regexp that show me any occurence of this tag, where i.e.:
> - there are open tag [-
> - name of variable [-VARIABLENAME
> but the close tag -] are after a line break
>
> and i.e.
> - start tag [-
> - some char of variable (written in capital letters) [-VARIABLE
> - but before the end tag, some non capital letter (that is .rtf code)
> [-VARIABLE\rtf\ql\lind34}NAME-]
>
> I hope I have well explained. (if not, ask me more clarifications)
>
> is it possible?
This might give some false positives, but not miss any tags:
"\\[-[^^\000]+?-]"
--
cheers,
Thorsten