Hi! On Mon, 17 Oct 2011 14:13:05 +0200, Daniel Schoepe <daniel.schoepe at googlemail.com> wrote: > On Mon, 17 Oct 2011 11:16:45 +0200, Thomas Schwinge <thomas at schwinge.name> > wrote: > > Is it permissible for message IDs to contain double quotes? If not (and > > I hope so), might id:\"[^\"]+\" be a better regexp? (Untested.) As it > > appears to me, this would allow proper matching in text like this, too: > > > > Bla bla, see id:"some at thing". Bla bla. > > My patch already works for this example, and I don't think spaces are > allowed in message IDs, so it shouldn't make a difference.
Ah, of course, right... Yet, won't yours -- id:\"[^ ]+\" -- match too much in this example: Bla, bla, see id:"some at thing"--"some famous quote" is bla. How about this one? id:\(\"?\)[^[:space:]"]+\1 Test: id:some at thing "something" id:"some at thing"--"something" id:"some at thing"--something id:some at thing "something else" id:"some at thing"--"something else" id:"some at thing"--something else id:some at thing id:"some at thing" Gr??e, Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 489 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111017/93931cb8/attachment-0001.pgp>