# Extract only numbers using Regex

**URL:** <https://community.glideapps.com/t/extract-only-numbers-using-regex/41911>\
**Category:** Ask for Help\
**Created:** [May 13, 2022, 2:30am UTC](https://community.glideapps.com/t/extract-only-numbers-using-regex/41911 "2022-05-13T02:30:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josiah\_Abshear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/josiah_abshear/32/29072_2.png) [@Josiah\_Abshear](https://community.glideapps.com/u/Josiah_Abshear)\
**Post date:** [May 13, 2022, 2:30am UTC](https://community.glideapps.com/t/extract-only-numbers-using-regex/41911/1 "2022-05-13T02:30:55Z")

</div>

How might I do the exact opposite of what is demonstrated in this thread? Rather than extracting alphabetic characters, I need to extract only the numbers from another column.

Continuing the discussion from [Regex to Remove Number from String](https://community.glideapps.com/t/regex-to-remove-number-from-string/36310):

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 13, 2022, 2:50am UTC](https://community.glideapps.com/t/extract-only-numbers-using-regex/41911/2 "2022-05-13T02:50:25Z")

</div>

You’ll probably need something like `(\d+)`

But there are often edge cases with regex. It would be useful if you could share some sample data and desired output.

---

<div class="post-metadata">

**Author:** ![Josiah\_Abshear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/josiah_abshear/32/29072_2.png) [@Josiah\_Abshear](https://community.glideapps.com/u/Josiah_Abshear)\
**Post date:** [May 13, 2022, 2:21pm UTC](https://community.glideapps.com/t/extract-only-numbers-using-regex/41911/3 "2022-05-13T14:21:32Z")

</div>

That worked great! Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [May 14, 2022, 2:22pm UTC](https://community.glideapps.com/t/extract-only-numbers-using-regex/41911/4 "2022-05-14T14:22:24Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
