"The World's most reliable SMS gateway software!"
Tel.: 00 36 52 532 731
Overview Quick start Download Manual How to buy FAQ Contact Us
OZEKI NG SMS Gateway - Product Guide

Multi provider Contents | SearchConvert phone numbers into international format

Home > Product Manual > User Guide > Configuration > Outbound routing > Regular expressions

SMS Gateway SMS Gateway Home

  Product Manual
  SMS technology
  Installation Guide
  User Guide
  Quick Start Guide
  User Interface
  Inbound Routing
  Outbound routing
  Least cost routing
  Backup routing
  Multi provider
  Regular expressions
  Convert phone numbers into international format
  SQL logging
  Source routing
  Sender address
  Content manipulation
  Charset handling
  List Management
  Client software
  Administrator's guide
  Developers Guide
  Examples and Solutions
  Feature list
  Commercial Information
  Cookie policy

Automated phone calls?
Ozeki Phone System XE VoIP PBX software is an advanced PBX built for automated voice calls and 2 way SMS messaging. It has outstanding APIs for software developers. It can be used for:

Phone calls from SQL
Phone calls from HTTP
Voice and SMS applications

Callcenter developers
If you are working on telephone solutions, please check out the Ozeki VoIP SIP SDK.
It can be used to create VoIP client and server software.

Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.

Regular expressions with "AND" and "OR"

On this page you will find detailed information on the connection of regular expressions with "AND" and "OR" operators. With regular expressions you can define conditions for routing. Read more about this solution on this page.

So with regular expressions you can define match patterns as conditions for message routing. These patterns can be connected with logical "OR" or "AND". If the pattern is matched then the message will be sent out to the destination on the defined route. Please check our examples on this page.

For example, a regular expression is provided as a condition to the recipient telephone numbers beginning with "310" or "311" in the following way:

If you enter /^(310|311).*/ in the Condition 2 line, then if the phone number of the recipient matches the directives of this condition; so if the phone number of the recipient starts with "310" or "311" (and "310" or "311" can be followed by any digit) the outgoing SMS messages will be sent out using the SMPP connection. In this way, this rule will be met in case of phone numbers: "3101234" and "3112345" but it is not matched in case of "06303101234" phone number.

Figure 1 - Recipient phone number begins with 310 or 311

If you use international telephone number format (starts with "+"), you can use the following regular expression: /^[+]*(310|311).*/

Among regular expressions, by default there is an "AND" connection. Therefore, the provided values are connected by "AND" connection. If you provide a regular expression as a condition, there will be an "AND" connection among its elements. For example, if the text of the outgoing message starts with "John" and ends with "Smith", then messages will be sent out through the installed GSM modem. This condition will be matched both in case of the message of "John Smith" and "John Edward Smith". But if the text of the message is "Smith John" then this condition will not be met (Figure 2).

Figure 2 - The message starts with "John" and ends with "Smith"

Dig deeper!
People who read this also read...

Next page: Convert phone numbers into international format

Ozeki Cookie Policy
Ozeki Informatics Ltd uses cookies to provide you the best experience on this website. The further use of the website will be considered as an agreement to the use of cookies. For more information read this website.

Cookies are enabled You are browsing the optimized version of this website. For more information read this website.

Copyright © 2000 - 2015 Ozeki Informatics Ltd.
All rights reserved

Software PBX for Windows | VoIP SDK   |   Legal information   |   Privacy policy   |   Terms of use
Please, address your inquiries to info@ozekisms.com