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



Hello.

I think that to match TC1234 YES you would need to write something like:
"^TC[:digit:]+ [:alpha:]+$".

With the regex "^TC" you will only be matching incoming messages with "TC" in its text.

Be sure to check out any regex reference, such as http://bama.ua.edu/cgi-bin/man-cgi?regex+5.



Regards,
Eduardo Q.
Costa Rica.


Reply via email to