# How To Use Slice And Parse Function Together?

For an **example**, lets use the slice and parse functions together to **format phone numbers** entered by users in various formats.

The **parse function extracts numeric characters** from the input phone number.

The **slice function** is then applied to the output of the parse function to **extract the last 10 digits** of the phone number.

This method **ensures consistent phone number formatting** for sending CRM messages.

The video provides examples of different phone number formats and shows how the slice and parse functions can be used to extract the desired digits.

Can be used to correct phone number formatting in automation builder.

{% embed url="https://youtu.be/T0yKOwUKrZk?si=cdP8tR7PML2cuHEp" %}

