Native
Synchronous
No Custom Parameters
FormatAddress is a simple utility to take a string and attempt to apply a set of pattern/replacement regular expressions.
The intent of FormatAddress is to provide a simple way to process an unformatted phone number against one or more pattern/replacement regular expressions. The DialingRules action parameter must be a prepopulated hashtable of pattern/replacement regular expression strings, which the action will use to test for a match. The first match found will be processed using the Regex.Replace(string, string, string) overload, with the DialedNumber argument as the first string, the pattern regular expression being used as the second argument, and the replacement regular expression being used as the third argument. Once a match is made, FormatAddress will return with the result string from Regex.Replace as the ResultData result data parameter.
If no match is made, the DialedNumber action parameter is returned in the ResultData result data parameter.
The regular expressions must conform to the .NET syntax of regular expressions.
| Parameter Name | .NET Type | Default | Description |
|---|---|---|---|
| DialedNumber * | System.String | The unformatted phone number. | |
| DialingRules * | System.Collections.Hashtable | A prepopulated hashtable of pattern/replacement regular expressions. The Key must be the pattern regular expression to match against, and the corresponding Value entry must be the replacement regular expression. |
| Parameter Name | .NET Type | Description |
|---|---|---|
| ResultData | System.String | The processed phone number. |
Branch Conditions
No description.
No description.