I am curious if we can mask phone numbers in Wappler like it can be with php?
Example:
$data = ‘+11234567890’;
if( preg_match( ‘/^+\d(\d{3})(\d{3})(\d{4})$/’, $data, $matches ) )
{
$result = $matches[1] . ‘-’ .$matches[2] . ‘-’ . $matches[3];
return $result;
}
Community Page
Last updated:
Last updated: