Hola Alejandro,

Welcome to regex irregular world :-))

I suggest using this instead :
keyword-regex="^(BS|bs) [0-9]{4}"

\s and \d are understood only in Perl regex, not grep-like regex

Good luck :)
Cheers
Stephane

-- 
Stephane Rosa
IT Security & Network Specialist, EMEA
Tel: +41 21 966 12 38
Cell: +41 79 616 08 28
 
Stryker EMEA
Grand Rue 92
CH-1820 Montreux, Switzerland
http://www.europe.stryker.com
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, July 28, 2005 19:49
> To: users@kannel.org
> Subject: SMS Service questions
> 
> Hello All!
> 
> 
> I've been using consistently kannel for a few months and i'm 
> really happy with it... however i have a question about regex
> 
> Right now i have this service:
> 
> 
> group = sms-service
> keyword = testing_u
> keyword-regex=^(BS|bs)
> allowed-receiver-prefix="333;503333"
> #catch-all= true
> get-url = 
> "http://192.168.9.180/entrance.asp?phnmbr=%p&msg=%a&Service=%i&svc=%P";
> accept-x-kannel-headers = true
> max-messages= 0
> 
> It matches any service starting with BS or bs.
> 
> Im trying it to match bs and 4 digits after it like this "BS 
> 1234 TY 123"
> keyword-regex=^(BS|bs)\s\d{4}.*
> 
> but it DOES not match :(
> 
> Any clues of what i might be doing wrong??
> 
> 
> Thanks!
> 
> Alejandro
> 
> 
> 

Reply via email to