# RegEx remove Spaces

**URL:** <https://community.hubspot.com/t/regex-remove-spaces/56779>\
**Category:** CMS Development\
**Created:** [May 12, 2022, 2:17am UTC](https://community.hubspot.com/t/regex-remove-spaces/56779 "2022-05-12T02:17:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SStrachan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sstrachan/32/99678_2.png) [@SStrachan](https://community.hubspot.com/u/SStrachan)\
**Post date:** [May 12, 2022, 2:17am UTC](https://community.hubspot.com/t/regex-remove-spaces/56779/1 "2022-05-12T02:17:03Z")

</div>

How can I remove the spaces from this string?

`{% set broker = module.broker_one.properties.mobilephone|regex_replace("[^0-9]", " ") %}`

The actual string is:

### +33 6 16 39 19 59

It currently outputs

### 33 6 16 39 19 59

I just need to remove the spaces.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [May 12, 2022, 3:04pm UTC](https://community.hubspot.com/t/regex-remove-spaces/56779/2 "2022-05-12T15:04:49Z")

</div>

@SStrachan try removing the space between the **" "**

`|regex_replace("[^0-9]", "")`
