Gnus development mailing list
 help / color / mirror / Atom feed
* [help]regexp in posting styles
@ 2005-11-26 14:06 leon
  2005-11-28 17:47 ` Trent Buck
  2005-11-28 18:11 ` Henrik Enberg
  0 siblings, 2 replies; 4+ messages in thread
From: leon @ 2005-11-26 14:06 UTC (permalink / raw)


Hi all,

I'm trying to configure posting styles for groups match 'string1' or
'string2', I have the following lines in my gnus.el. However, it doesn't
work. Any ideas?

(setq gnus-posting-styles
      '((".*"
	 (address "sdl.web@gmail.com"))
	
	("^string1\|^string2"         ;;; this line has problems
	 (name "My Name")
	 (address "whoever@example.com"))
	)
      )
-- 
Leon




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

* Re: [help]regexp in posting styles
  2005-11-26 14:06 [help]regexp in posting styles leon
@ 2005-11-28 17:47 ` Trent Buck
  2005-11-28 18:11 ` Henrik Enberg
  1 sibling, 0 replies; 4+ messages in thread
From: Trent Buck @ 2005-11-28 17:47 UTC (permalink / raw)


leon <sdl.web@gmail.com> writes:

> Hi all,
>
> I'm trying to configure posting styles for groups match 'string1' or
> 'string2', I have the following lines in my gnus.el. However, it doesn't
> work. Any ideas?
>
> (setq gnus-posting-styles
>       '((".*"
> 	 (address "sdl.web@gmail.com"))
> 	
> 	("^string1\|^string2"         ;;; this line has problems
\\|

> 	 (name "My Name")
> 	 (address "whoever@example.com"))
> 	)
>       )
> -- 
> Leon
>
>
>

-- 
Trent Buck, Student Errant




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

* Re: [help]regexp in posting styles
  2005-11-26 14:06 [help]regexp in posting styles leon
  2005-11-28 17:47 ` Trent Buck
@ 2005-11-28 18:11 ` Henrik Enberg
  2005-11-28 23:14   ` leon
  1 sibling, 1 reply; 4+ messages in thread
From: Henrik Enberg @ 2005-11-28 18:11 UTC (permalink / raw)
  Cc: ding

> From:  leon <sdl.web@gmail.com>
> Date:  Sat, 26 Nov 2005 14:06:49 +0000
> 
> Hi all,
> 
> I'm trying to configure posting styles for groups match 'string1' or
> 'string2', I have the following lines in my gnus.el. However, it doesn't
> work. Any ideas?
> 
> 	("^string1\|^string2"         ;;; this line has problems

"^\\(string\\|string2\\)"

Note that the \ is an escape character inside strings, so it must itself
be escaped.



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

* Re: [help]regexp in posting styles
  2005-11-28 18:11 ` Henrik Enberg
@ 2005-11-28 23:14   ` leon
  0 siblings, 0 replies; 4+ messages in thread
From: leon @ 2005-11-28 23:14 UTC (permalink / raw)


Henrik Enberg <henrik.enberg@telia.com> writes:


 | "^\\(string\\|string2\\)"
 | 
 | Note that the \ is an escape character inside strings, so it must itself
 | be escaped.

It works as expected. Many thanks.

-- 
.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:.
.     *                                       .
.    /.\  excuses are the easiest things      .
.   /..'\     to manufacture                  .
.   /'.'\   and the hardest things to sell    .
.  /.''.'\                                    .
.  /.'.'.\                                    .
. /'.''.'.\                                   .
. ^^^[_]^^^                                   .
.                                             .
.Leon                                         .
.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:.




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

end of thread, other threads:[~2005-11-28 23:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26 14:06 [help]regexp in posting styles leon
2005-11-28 17:47 ` Trent Buck
2005-11-28 18:11 ` Henrik Enberg
2005-11-28 23:14   ` leon

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).