SMS-Filter handles incoming SMS messages up on rules and is able to block SMS, show a notification, click links within SMS messages, call a web service and write events to a log.
Messages can be easily filtered and SMS contents can be transmitted to a URL of a web service via GET parameter:
http://yourdomain.com?data=sms_content
Rules can be defined as regular expressions for a senders address and a message body:
Regular Expression Description
.
Matches any sign
^regex
regex must match at the beginning of the line
regex$
Finds regex must match at the end of the line
[abc]
Set definition, can match the letter a or b or c
[abc[vz]]
Set definition, can match a or b or c followed by either v or z
[^abc]
When a "^" appears as the first character inside [] when it negates the pattern. This can match any character except a or b or c
[a-d1-7]
Ranges, letter between a and d and figures from 1 to 7, will not match d1
X|Z
Finds X or Z
XZ
Finds X directly followed by Z
$
Checks if a line end follows
d Any digit, short for [0-9]
D A non-digit, short for [^0-9]
s A whitespace character
S A non-whitespace character, for short for [^s]
w A word character, short for [a-zA-Z_0-9]
W A non-word character [^w]
S+ Several non-whitespace characters