You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Phone Number Validation using Contact Washing Machine

Use case: Let us say you wanted to have phone numbers to be in the following format without spaces and “00” or “+” in the starting of the phone number.

  1. Open your Program Canvas or Campaign Canvas and drag and drop CWM app, click on configuration.
  2. Assuming you are aware of CWM app, select Action as “RegEx Replace” and enter below code.

Find: \D ->it will remove all the spaces, “-“from the phone number.

Replace: Blank

3. Now, select Action as “RegEx Replace” again and enter below code:

Find: ^\s*(?:\+?(\d{1,3}))?[-. (]*(\d{3})[-. )]*(\d{3})[-. ]*(\d{4})(?: *x(\d+))?\s*$

Replace: 00$1$2$3$4 or +$1$2$3$4

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!