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.' <[email protected]>; [email protected]
Cc: [email protected]
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 <[email protected]<mailto:[email protected]>> On 
Behalf Of Yahya M.
Sent: Monday, November 12, 2018 10:11 AM
To: [email protected]<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>
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 
<[email protected]<mailto:[email protected]>> 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. 
<[email protected]<mailto:[email protected]>>:

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!

Напомена: оне.Вип ДООЕЛ Скопје
Оваа електронска порака (вклучувајќи ги и прилозите) е доверлива и може да биде 
заштитена со правни привилегии. Доколку не сте лицето на кое таа му е наменета 
пораката, не треба да ја копирате, дистрибуирате или да ја откривате нејзината 
содржина, туку веднаш да ја препратите до испраќачот и да ја избришете 
оригиналната порака и сите нејзини копии од Вашиот компјутерски систем. Секое 
неовластено користење на оваа порака во целост или делови од истата е строго 
забрането. Ве молиме да забележите дека електронските пораки се подложни на 
промени. оне.Вип ДООЕЛ Скопје не презема одговорност за несоодветно или 
нецелосно пренесување на информациите содржани во оваа комуникација, ниту пак 
за било какво задоцнување на приемот или оштетувања на вашиот систем.
Ве молиме не ја печатете оваа порака освен ако не е неопходно! Зачувајте ја 
природата!

Reply via email to