From: Angus Comber <anguscomber@gmail.com>
To: Emacs Help <help-gnu-emacs@gnu.org>
Subject: Re: How to highlight-regexp across multiple lines
Date: Thu, 3 Apr 2014 18:24:56 +0100 [thread overview]
Message-ID: <CAAtGUhUOQsahjaOW5W3TajyNdKJee74qJQbS1KTvg1E1O051aw@mail.gmail.com> (raw)
In-Reply-To: <87ioqqih7n.fsf@gmail.com>
It seems that it matches the aPDU messages provided there is no 0 in the
text. I am puzzled by the [^\\000] - where can I find documentation on it?
Is it not null or something like that? But then why does it not capture
string "0"?
On 3 April 2014 16:08, Thorsten Jolitz <tjolitz@gmail.com> wrote:
> Angus Comber <anguscomber@gmail.com> writes:
>
> > I was looking at this question on stackoverflow and it seems regex can
> > select across multiple lines generally but how would I do so for
> > highlight-regexp in emacs?
> >
> >
> http://stackoverflow.com/questions/159118/how-do-i-match-any-character-across-multiple-lines-in-a-regular-expression
> >
> >
> > Eg I want to highlight ALL text from aPDU... to the final closing brace:
> >
> > aPDU-rose : retResult : {
> > invokeID 2,
> > operValue {
> > operationValue local : 71,
> > result {
> > crossRefIdentifier '40 3f'H
> > }
> > }
> > }
> >
> >
> > How would I do that using highlight-regexp?
> >
> > highlight-regexp aPDU-rose.* hi-yellow would get me the first line - but
> > how to get everything including last } character?
>
> This regexp did match the aPDU in the gnus *Article* buffer:
>
> ,--------------------
> | "^aPDU[^\\000]+[}]+?$"
> `--------------------
>
> --
> cheers,
> Thorsten
>
>
>
next prev parent reply other threads:[~2014-04-03 17:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 14:43 How to highlight-regexp across multiple lines Angus Comber
2014-04-03 15:08 ` Thorsten Jolitz
2014-04-03 15:22 ` Angus Comber
2014-04-03 17:24 ` Angus Comber [this message]
2014-04-03 19:21 ` Thorsten Jolitz
2014-04-04 9:58 ` Angus Comber
2014-04-04 10:35 ` Thorsten Jolitz
2014-04-04 10:49 ` Nicolas Richard
2014-04-04 10:50 ` Nicolas Richard
2014-04-04 12:50 ` Angus Comber
2014-04-04 13:26 ` Thorsten Jolitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAtGUhUOQsahjaOW5W3TajyNdKJee74qJQbS1KTvg1E1O051aw@mail.gmail.com \
--to=anguscomber@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.