"Enter" regex.

These are old archives. They are kept for historic purposes only.
Post Reply
INCARA
Posts: 2
Joined: Sun Oct 21, 2007 1:58 pm

"Enter" regex.

Post by INCARA »

Hi,

I could use

Code: Select all

(^[a-z]\s*+$)
regex instead of "enter" with Unral 3.2.6.

People could not use "one character then enter".

But I can not use in spamfilter.conf with 3.2.7.

When I rehash I got this message
"*** Notice -- error: spamfilter.conf:9: spamfilter::regex contains an invalid regex: Invalid use of repetition operators"
So what is wrong with it?

That regex means enter has been changed?

Thanks.
INCARA
Posts: 2
Joined: Sun Oct 21, 2007 1:58 pm

Re: "Enter" regex.

Post by INCARA »

I think I can use this.

Code: Select all

^.$
If it does not cause a problem.
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Re: "Enter" regex.

Post by Jason »

Incara: The second one is by far better.

The first one MIGHT do what you want, kinda, if the regex engine happens to be perfectly designed for you. Also: I think your problem is that the current TRE engine has no greedy/lazy operator support. *+, is thus, invalid.
Why the hell can't my signature be empty?
"Your message contains too few characters."
Post Reply