From: Tero Tilus <tero@tilus.net>
To: Sup users <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] Non-english outlook block quote regexp
Date: Thu, 27 Jan 2011 15:29:22 +0200 [thread overview]
Message-ID: <1296131602-sup-9793@tilus.net> (raw)
In-Reply-To: <1296046853-sup-2234@pruts.nl>
Ico Doornekamp, 2011-01-26 15:12:
> Any opinions on matching the exact number of hashes, two uppercase words
> and again the exact number of hashes, something like:
>
> ^-----\s*([A-Z][a-z]+\s*){2}----+$
>
> Would that be safe to do ?
Prolly safe, but it misses german Outlook quote
"-------- Original-Nachricht --------"
and yes, it has different amount of dashes :-O Also it misses finnish
quote (for two obvious reason).
"-----Alkuperäinen viesti-----"
Would ^-----+\s*\S+[ -]\S+\s*-----+$ do the trick and not give false
positives?
ps. I have occasionaly thought of configurable quote etc. regexen.
Would anybody else use such a feature? Or should we go all the way to
state-transition-hook for state machine parsing message body? :)
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next prev parent reply other threads:[~2011-01-27 13:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-26 13:12 Ico Doornekamp
2011-01-27 13:29 ` Tero Tilus [this message]
2011-01-27 15:00 ` Michael Stapelberg
2011-01-28 9:24 ` Ico Doornekamp
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=1296131602-sup-9793@tilus.net \
--to=tero@tilus.net \
--cc=sup-talk@rubyforge.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox