Page 1 of 1

"Enter" regex.

Posted: Sun Oct 21, 2007 2:03 pm
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.

Re: "Enter" regex.

Posted: Sun Oct 21, 2007 2:21 pm
by INCARA
I think I can use this.

Code: Select all

^.$
If it does not cause a problem.

Re: "Enter" regex.

Posted: Mon Oct 22, 2007 9:43 pm
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.