Hi,

 >> > if ($self->TransactionObj->Type eq "Create" &&
 >> >   ($self->TicketObj->Subject !=~ /[P|p]roje[c|k]t: / ||
 >> >   $self->TicketObj->Subject !=~/[A|a]kut: / ) )
 >
 > I'm pretty sure that && is a higher precedence than ||, so the result
 > without parentheses would be the same as ( ( A && B ) || C ) instead of
 > ( A && ( B || C )) which is what you described.

I understand that now. Thank you. But I found out my scrip is not 
working because of the wrong regex.

$self->TicketObj->Subject !=~ /[A|a]kut: /  --> doesn't work
$self->TicketObj->Subject !~ /[A|a]kut: /  --> doesn't work

what would be the right expression to make it negative?

$self->TicketObj->Subject =~ /[A|a]kut: /  --> does work for positiv

Thanks
Violetta
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to