XML-RPC API - "Check if String Matches" Rule

"Check if String Matches" Rule
S
Written by Sergiiy
Updated 11 months ago

checkMatchRule()

This application is used to check if number matches regular expression.

Method could be used to check the following rules:

  • CLI validation rule on Tariff
  • CLI validation rule on Destination set

Parameters:

  • rule - rule to match. String. Required.
  • number - the number to be checked. String. Optional. Default is empty string.

Returns:

  • result - OK means that operation was successful. String.
  • match - if the number matches. Boolean.
Did this answer your question?