© Copyright 2023, Astera Software
IsUSPhone (String str)
Name | IsUSPhone |
Syntax | IsUSPhone (String str) |
Purpose | To return true if the number represents a valid US phone number. |
Description | Checks whether a given value represents a valid United States phone number. This method tests format and digits to determine whether the given string is potentially a valid US phone number. |
Return Type | Boolean |
Parameter | str [System.String] – Value to be checked. |
Example
In this example, we will pass the required parameter to the function transformation object using a Variables object.
Where,
str = (123) 456-7890
In the output window, you can see that Astera has returned “True”, as the specified string matches a valid US phone format.