On Fri, Jul 08, 2011 at 11:52:50AM -0400, Joseph Spenner wrote:
I'm using RT 3.8.8 and trying to modify my RTAddressRegexp such that the
following get matched:
blue-ho...@domain.com
blue-...@domain.com
blue-tr...@domain.com
red-ho...@domain.com
red-eng...@domain.com
red-b...@domain.com
th...@domain.com
My goal is to catch anything beginning with blue- or red-, or equal to
thing before the @. Can a * be used in RTAddressRegexp ?
ie:
Set($RTAddressRegexp , '^(blue-|red-|thing)*\@(domain\.com)$');
I didn't see a * used in the documentation, so I was curious if that was a
valid way to accomplish my goal. Also, since thing is by itself, would the
* after that cause it to fail?
This should be a Perl regexp, which means that * is a quantifier and not
a globbing character; read up on Perl regexpes if you want to do much of
anything with them. The following would probably do what you want:
^((blue|red)-.+|thing)@domain\.com
Paul.
--
Paul Hoffman p...@flo.org
Systems Librarian
Fenway Libraries Online
c/o Wentworth Institute of Technology
550 Huntington Ave.
Boston, MA 02115
(617) 445-2914
(617) 442-2384 (FLO main number)
2011 Training: http://bestpractical.com/services/training.html