Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* rx and gnus-posting-styles
@ 2007-07-17 17:07 Hadron
  2007-07-18 17:47 ` Tassilo Horn
       [not found] ` <mailman.3601.1184780852.32220.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 13+ messages in thread
From: Hadron @ 2007-07-17 17:07 UTC (permalink / raw)
  To: info-gnus-english


I tried to use rx as a pattern match condition in gnus-posting-styles
and was advised in the emacs irc channel to use something like

rx(or "str1" "str2") to match all strings containing str1 or str2. It
didn't work.

However I did use the output of rx substituted in my gnus-posting style
and it worked:

e.g "\\(?:php\\linux)".

Could someone please explain it to me as I dont see how that matches all
strings containing "php" or "linux".

Before playing with "rx" I had ".*php.*\\|.*linux.*" matching what I wanted.

Here is the corresponding "rx output" gnus-posting-style entry:

(setq gnus-posting-styles
      '(

	(""\\(?:php\\linux)""
	 (name "Hadron")(address "hq@gmail.com")
	 )


	))


The main question is, however, can I use "rx" directly or not in
gnus-posting-style?

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-07-22 18:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-17 17:07 rx and gnus-posting-styles Hadron
2007-07-18 17:47 ` Tassilo Horn
     [not found] ` <mailman.3601.1184780852.32220.info-gnus-english@gnu.org>
2007-07-18 21:08   ` Hadron
2007-07-18 21:18     ` Hadron
2007-07-19  6:44       ` Tassilo Horn
     [not found]       ` <mailman.3624.1184827500.32220.info-gnus-english@gnu.org>
2007-07-19 11:46         ` Hadron
2007-07-19 14:19           ` Tassilo Horn
     [not found]           ` <mailman.3629.1184854774.32220.info-gnus-english@gnu.org>
2007-07-20 12:58             ` Hadron
2007-07-20 15:02               ` Tassilo Horn
     [not found]               ` <mailman.3686.1184943771.32220.info-gnus-english@gnu.org>
2007-07-22 11:45                 ` Hadron
2007-07-22 11:55                   ` Brep
2007-07-22 18:10                     ` Hadron
2007-07-22 14:09                   ` Tassilo Horn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).