Discussion:
Two or more word keyword
Yahya M.
2018-11-12 08:33:17 UTC
Permalink
I want my system to respond to a keywords that made up of two or more words
like "stop all" or "stop A". I tried to set this up. but it responds with
unknown keyword reply. default service. Is there anyway I can achieve this?
Give me some examples please. thanks
a***@kannel.org
2018-11-12 08:45:51 UTC
Permalink
Hi,

please check userguide:
https://kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4069 <https://kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4069>

Especially:
keyword-regex POSIX regular expression This field may be used to enable service-selection based on a regular expression. You can define either keyword or keyword-regex in configuration, but not both in the same sms-service. keyword-regex is case sensitive. See section on Regular Expressions <https://kannel.org/download/kannel-userguide-snapshot/userguide.html#regular-expressions> for details.

Thanks,
Alex

P.S. This question belongs to users mailing list and not devel.
I want my system to respond to a keywords that made up of two or more words like "stop all" or "stop A". I tried to set this up. but it responds with unknown keyword reply. default service. Is there anyway I can achieve this? Give me some examples please. thanks
Yahya M.
2018-11-12 09:11:04 UTC
Permalink
Thanks a lot. But, I don't know how to use regex properly. i have been
trying this for over three weeks now and I need some regex examples for
these two keywords. "stop all" and "stop B" in different variations like
"STOP ALL", "Stop All", "Stop all", "STOP B", "Stop B", "Stop b".

thanks.
Post by a***@kannel.org
Hi,
https://kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4069
keyword-regex POSIX regular expression This field may be used to enable
service-selection based on a regular expression. You can define either
keyword or keyword-regex in configuration, but not both in the same
sms-service. keyword-regex is case sensitive. See section on Regular
Expressions
<https://kannel.org/download/kannel-userguide-snapshot/userguide.html#regular-expressions> for
details.
Thanks,
Alex
P.S. This question belongs to users mailing list and not devel.
I want my system to respond to a keywords that made up of two or more
words like "stop all" or "stop A". I tried to set this up. but it responds
with unknown keyword reply. default service. Is there anyway I can achieve
this? Give me some examples please. thanks
Davor Spasoski
2018-11-12 10:08:47 UTC
Permalink
Hi,

Yes, regex is tricky. Try the following example:
(?i)(stop)(\ )(all)

You can use this resource to build your regex graphically: https://txt2re.com/
And then the following to check: https://regex101.com/

BR,

Davor

From: devel <devel-***@kannel.org> On Behalf Of Yahya M.
Sent: Monday, November 12, 2018 10:11 AM
To: ***@kannel.org
Cc: ***@kannel.org
Subject: Re: Two or more word keyword

Thanks a lot. But, I don't know how to use regex properly. i have been trying this for over three weeks now and I need some regex examples for these two keywords. "stop all" and "stop B" in different variations like "STOP ALL", "Stop All", "Stop all", "STOP B", "Stop B", "Stop b".

thanks.

On Mon, Nov 12, 2018 at 11:46 AM <***@kannel.org<mailto:***@kannel.org>> wrote:
Hi,

please check userguide:
https://kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4069

Especially:
keyword-regex

POSIX regular expression

This field may be used to enable service-selection based on a regular expression. You can define either keyword or keyword-regex in configuration, but not both in the same sms-service. keyword-regex is case sensitive. See section on Regular Expressions<https://kannel.org/download/kannel-userguide-snapshot/userguide.html#regular-expressions> for details.


Thanks,
Alex

P.S. This question belongs to users mailing list and not devel.


Am 12.11.2018 um 09:33 schrieb Yahya M. <***@gmail.com<mailto:***@gmail.com>>:

I want my system to respond to a keywords that made up of two or more words like "stop all" or "stop A". I tried to set this up. but it responds with unknown keyword reply. default service. Is there anyway I can achieve this? Give me some examples please. thanks





________________________________

Disclaimer: one.Vip DOOEL Skopje
This e-mail (including any attachments) is confidential and may be protected by legal privilege. If you are not the intended recipient, you should not copy it, re-transmit it, use it or disclose its contents, but should return it to the sender immediately and delete your copy from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. one.Vip DOOEL Skopje shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system.
Please, do not print this e-mail unless it is necessary! Think about saving the environment!

НапПЌеМа: ПМе.ВОп ДООЕЛ СкПпје
Оваа електрПМска пПрака (вклучувајќО гО О прОлПзОте) е ЎПверлОва О ЌПже Ўа бОЎе заштОтеМа сП правМО прОвОлегОО. ДПкПлку Ме сте лОцетП Ма кПе таа Ќу е МаЌеМета пПраката, Ме треба Ўа ја кПпОрате, ЎОстрОбуОрате ОлО Ўа ја ПткрОвате МејзОМата сПЎржОМа, туку веЎМаш Ўа ја препратОте ЎП ОспраќачПт О Ўа ја ОзбрОшете ПрОгОМалМата пПрака О сОте МејзОМО кПпОО ПЎ ВашОПт кПЌпјутерскО сОстеЌ. СекПе МеПвластеМП кПрОстење Ма Пваа пПрака вП целПст ОлО ЎелПвО ПЎ Остата е стрПгП забраМетП. Ве ЌПлОЌе Ўа забележОте Ўека електрПМскОте пПракО се пПЎлПжМО Ма прПЌеМО. ПМе.ВОп ДООЕЛ СкПпје Ме презеЌа ПЎгПвПрМПст за МесППЎветМП ОлО МецелПсМП преМесување Ма ОМфПрЌацООте сПЎржаМО вП Пваа кПЌуМОкацОја, МОту пак за бОлП каквП заЎПцМување Ма прОеЌПт ОлО Пштетувања Ма вашОПт сОстеЌ.
Ве ЌПлОЌе Ме ја печатете Пваа пПрака ПсвеМ акП Ме е МеПпхПЎМП! Зачувајте ја прОрПЎата!
Davor Spasoski
2018-11-12 10:13:21 UTC
Permalink
Don’t forget the start and end anchors as kannel wants them

^(?i)(stop)(\ )(all)$

Davor

From: Davor Spasoski
Sent: Monday, November 12, 2018 11:09 AM
To: 'Yahya M.' <***@gmail.com>; ***@kannel.org
Cc: ***@kannel.org
Subject: RE: Two or more word keyword

Hi,

Yes, regex is tricky. Try the following example:
(?i)(stop)(\ )(all)

You can use this resource to build your regex graphically: https://txt2re.com/
And then the following to check: https://regex101.com/

BR,

Davor

From: devel <devel-***@kannel.org<mailto:devel-***@kannel.org>> On Behalf Of Yahya M.
Sent: Monday, November 12, 2018 10:11 AM
To: ***@kannel.org<mailto:***@kannel.org>
Cc: ***@kannel.org<mailto:***@kannel.org>
Subject: Re: Two or more word keyword

Thanks a lot. But, I don't know how to use regex properly. i have been trying this for over three weeks now and I need some regex examples for these two keywords. "stop all" and "stop B" in different variations like "STOP ALL", "Stop All", "Stop all", "STOP B", "Stop B", "Stop b".

thanks.

On Mon, Nov 12, 2018 at 11:46 AM <***@kannel.org<mailto:***@kannel.org>> wrote:
Hi,

please check userguide:
https://kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4069

Especially:
keyword-regex

POSIX regular expression

This field may be used to enable service-selection based on a regular expression. You can define either keyword or keyword-regex in configuration, but not both in the same sms-service. keyword-regex is case sensitive. See section on Regular Expressions<https://kannel.org/download/kannel-userguide-snapshot/userguide.html#regular-expressions> for details.


Thanks,
Alex

P.S. This question belongs to users mailing list and not devel.

Am 12.11.2018 um 09:33 schrieb Yahya M. <***@gmail.com<mailto:***@gmail.com>>:

I want my system to respond to a keywords that made up of two or more words like "stop all" or "stop A". I tried to set this up. but it responds with unknown keyword reply. default service. Is there anyway I can achieve this? Give me some examples please. thanks





________________________________

Disclaimer: one.Vip DOOEL Skopje
This e-mail (including any attachments) is confidential and may be protected by legal privilege. If you are not the intended recipient, you should not copy it, re-transmit it, use it or disclose its contents, but should return it to the sender immediately and delete your copy from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. one.Vip DOOEL Skopje shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system.
Please, do not print this e-mail unless it is necessary! Think about saving the environment!

НапПЌеМа: ПМе.ВОп ДООЕЛ СкПпје
Оваа електрПМска пПрака (вклучувајќО гО О прОлПзОте) е ЎПверлОва О ЌПже Ўа бОЎе заштОтеМа сП правМО прОвОлегОО. ДПкПлку Ме сте лОцетП Ма кПе таа Ќу е МаЌеМета пПраката, Ме треба Ўа ја кПпОрате, ЎОстрОбуОрате ОлО Ўа ја ПткрОвате МејзОМата сПЎржОМа, туку веЎМаш Ўа ја препратОте ЎП ОспраќачПт О Ўа ја ОзбрОшете ПрОгОМалМата пПрака О сОте МејзОМО кПпОО ПЎ ВашОПт кПЌпјутерскО сОстеЌ. СекПе МеПвластеМП кПрОстење Ма Пваа пПрака вП целПст ОлО ЎелПвО ПЎ Остата е стрПгП забраМетП. Ве ЌПлОЌе Ўа забележОте Ўека електрПМскОте пПракО се пПЎлПжМО Ма прПЌеМО. ПМе.ВОп ДООЕЛ СкПпје Ме презеЌа ПЎгПвПрМПст за МесППЎветМП ОлО МецелПсМП преМесување Ма ОМфПрЌацООте сПЎржаМО вП Пваа кПЌуМОкацОја, МОту пак за бОлП каквП заЎПцМување Ма прОеЌПт ОлО Пштетувања Ма вашОПт сОстеЌ.
Ве ЌПлОЌе Ме ја печатете Пваа пПрака ПсвеМ акП Ме е МеПпхПЎМП! Зачувајте ја прОрПЎата!
Loading...