Regex for negation

Moderator: crythias

Locked
adininggar
Znuny newbie
Posts: 14
Joined: 25 Feb 2013, 04:35
Znuny Version: 3.1.12
Real Name: Adininggar Khintana
Company: Polman

Regex for negation

Post by adininggar »

Is there anybody can help me?
I want write regex sintax for not match with word "otrs"..
First, I use [^o][^t][^r][^s] but it not work well..


Thanks for your help..
Adininggar
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Regex for negation

Post by Wolfgangf »

probably this one;

^((?!otrs).*)$
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
adininggar
Znuny newbie
Posts: 14
Joined: 25 Feb 2013, 04:35
Znuny Version: 3.1.12
Real Name: Adininggar Khintana
Company: Polman

Re: Regex for negation

Post by adininggar »

Thanks..
Your answer work well..
It's very help me.. :)

btw, I have new problem..
When customer create new ticket from, ticket will be store in "GA" queue.
then, when Ga's agent close this ticket, system will send email to customer that tickect was closed.
My problem is, when customer want to follow up this ticket, email will send in admin's email, not in agent's email..
I think because in SMTP setting, for email and password, I set admin's email for default email in SMTP..

I want if customer follow up, the ticket will re-opened and send email in agent..
What must I do?

I am still waiting for your help..
Thanks

Adininggar
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Regex for negation

Post by crythias »

don't use notifications on close ticket. Use reply or don't tell the customer.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
adininggar
Znuny newbie
Posts: 14
Joined: 25 Feb 2013, 04:35
Znuny Version: 3.1.12
Real Name: Adininggar Khintana
Company: Polman

Re: Regex for negation

Post by adininggar »

crythias wrote:don't use notifications on close ticket. Use reply or don't tell the customer.
Ok, I use reply to tell the customer..
My problem is when customer want follow up this ticket.
it will be sent in default SMTP email.
but, I want it send in agent's email..
What must I do?
Thanks


Adininggar
Locked