Maybe you forgot a wildcard after TC? In standard regular expressions
you would use "^TC*" to match lines beginning with "TC" and followed
anything else. If there always HAS to be some characters or numbers
after "TC" you should try "^TC*+".
May that helps,
Christian.
P.S.: It's the kind of mistake I do by myself all the time;)
Poul Møller Hansen wrote:
I have a problem using regex matching, it just wont match.
I have tried this:
group = sms-service
keyword = web_service
keyword-regex= "^TC"
get-url = "http://local/get.php?sender=%p&text=%a"
And believe that if I send the text "TC1234 YES" it will be matched,
but it isn't.
Matching a single character with
keyword-regex = "[§]"
works fine.
What am I doing wrong ?
Thanks,
Poul