Hi all,

Thanks all for your tips. It seems Mihai is correct since [:space:] does not work either. Could a kannel developer comment on this? Is this be design or a bug? It seems a touch strange to me as I can see many situations in which you would want to distinguish the second url.

Cheers,

Gareth

Mihai Zsigmond wrote:
Sorry guys,
But to my experience it won't work in any way.
Kannel is separating the keyword from the rest of the message with SPACE so, the regex is applied to whatever is from the beginning of the message to the first space. Maybe a future version will apply regex to the whole message, or will have an option to change the separator.
Till then, you have to parse the message yourself into your application.
BG
Mihai Zsigmond

----- Original Message ----- From: "Alejandro Guerrieri" <[EMAIL PROTECTED]>
To: <users@kannel.org>
Sent: Tuesday, June 14, 2005 3:32 AM
Subject: Re: sms-service regex problem


Have you tried using character classes?

^date[:space:]info[:space:]stop$

Or even:

^date[:space:]+info[:space:]+stop$

To match to one or more spaces...

Hope it helps,

On 6/13/05, Gareth Reakes <[EMAIL PROTECTED]> wrote:

Hi Rodrigo,

    Thanks for the reply.


On 13 Jun 2005, at 19:49, Rodrigo Cremaschi wrote:

> Did you try...
>
> keyword-regex = "^date info stop$"
>

Yes. Any other suggestions? Anyone seen this problem?

Gareth








--
Gareth Reakes, Managing Director      Parthenon Computing
+44-1865-811184                  http://www.parthcomp.com

Reply via email to