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!
ÐапПЌеМа: ПМе.ÐОп ÐÐÐÐРСкПпÑе
Ðваа елекÑÑПМÑка пПÑака (вклÑÑÑваÑÑО гО О пÑОлПзОÑе) е ЎПвеÑлОва О ЌПже Ўа бОЎе заÑÑОÑеМа ÑП пÑавМО пÑОвОлегОО. ÐÐŸÐºÐŸÐ»ÐºÑ ÐœÐµ ÑÑе лОÑеÑП Ма кПе Ñаа ÐŒÑ Ðµ МаЌеМеÑа пПÑакаÑа, Ме ÑÑеба Ўа Ñа кПпОÑаÑе, ЎОÑÑÑОбÑОÑаÑе ОлО Ўа Ñа ПÑкÑОваÑе МеÑзОМаÑа ÑПЎÑжОМа, ÑÑÐºÑ Ð²ÐµÐŽÐœÐ°Ñ ÐŽÐ° Ñа пÑепÑаÑОÑе ЎП ОÑпÑаÑаÑÐŸÑ Ðž Ўа Ñа ОзбÑОÑеÑе ПÑОгОМалМаÑа пПÑака О ÑОÑе МеÑзОМО кПпОО ПЎ ÐаÑÐžÐŸÑ ÐºÐŸÐŒÐ¿ÑÑÑеÑÑкО ÑОÑÑеЌ. СекПе МеПвлаÑÑеМП кПÑОÑÑеÑе Ма Пваа пПÑака вП ÑелПÑÑ ÐžÐ»Ðž ЎелПвО ПЎ ОÑÑаÑа е ÑÑÑПгП забÑаМеÑП. Ðе ЌПлОЌе Ўа забележОÑе Ўека елекÑÑПМÑкОÑе пПÑакО Ñе пПЎлПжМО Ма пÑПЌеМО. ПМе.ÐОп ÐÐÐÐРСкПпÑе Ме пÑезеЌа ПЎгПвПÑМПÑÑ Ð·Ð° МеÑППЎвеÑМП ОлО МеÑелПÑМП пÑеМеÑÑваÑе Ма ОМÑПÑЌаÑООÑе ÑПЎÑжаМО вП Пваа кПЌÑМОкаÑОÑа, МОÑÑ Ð¿Ð°Ðº за бОлП каквП заЎПÑМÑваÑе Ма пÑÐžÐµÐŒÐŸÑ ÐžÐ»Ðž ПÑÑеÑÑваÑа Ма ваÑÐžÐŸÑ ÑОÑÑеЌ.
Ðе ЌПлОЌе Ме Ñа пеÑаÑеÑе Пваа пПÑака ПÑвеМ акП Ме е МеПпÑ
ПЎМП! ÐаÑÑваÑÑе Ñа пÑОÑПЎаÑа!