From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: renato.pontefice@gmail.com Newsgroups: gmane.emacs.help Subject: regexp on emacs how to... Date: Sat, 30 Aug 2014 14:01:02 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1409432726 6504 80.91.229.3 (30 Aug 2014 21:05:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2014 21:05:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 30 23:05:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XNppl-0007i5-Jk for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Aug 2014 23:05:17 +0200 Original-Received: from localhost ([::1]:47750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNppl-0007Ui-5t for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Aug 2014 17:05:17 -0400 X-Received: by 10.182.131.226 with SMTP id op2mr9945025obb.17.1409432462780; Sat, 30 Aug 2014 14:01:02 -0700 (PDT) X-Received: by 10.140.83.180 with SMTP id j49mr365603qgd.1.1409432462717; Sat, 30 Aug 2014 14:01:02 -0700 (PDT) Original-Path: usenet.stanford.edu!r2no10877512igi.0!news-out.google.com!q8ni6qal.1!nntp.google.com!m5no4475423qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=109.118.32.176; posting-account=u2YPPQoAAAD4EIiLgz2UEPmFMncWw22R Original-NNTP-Posting-Host: 109.118.32.176 User-Agent: G2/1.0 Injection-Date: Sat, 30 Aug 2014 21:01:02 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207262 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99539 Archived-At: 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? thank you Renato