# How to extract specific text from the value?

**URL:** <https://community.make.com/t/how-to-extract-specific-text-from-the-value/3134>\
**Category:** Beginner Questions\
**Tags:** regular-expressions\
**Created:** [July 28, 2022, 5:32am UTC](https://community.make.com/t/how-to-extract-specific-text-from-the-value/3134 "2022-07-28T05:32:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yong\_Yun](https://avatars.discourse-cdn.com/v4/letter/y/edb3f5/32.png) [@Yong\_Yun](https://community.make.com/u/Yong_Yun)\
**Post date:** [July 28, 2022, 5:32am UTC](https://community.make.com/t/how-to-extract-specific-text-from-the-value/3134/1 "2022-07-28T05:32:49Z")

</div>

Hi makers,

I’m a newbie and have a question to use functions.  
For example, I have a value below.

- 12345678 : This is a test value

In this value I just want to get number (12345678),  
But I cannot think any of ways to extract only numbers.

Could you please help this?

---

<div class="post-metadata">

**Author:** ![NocodeNoah](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/nocodenoah/32/1477_2.png) [@NocodeNoah](https://community.make.com/u/NocodeNoah)\
**Post date:** [July 28, 2022, 6:19am UTC](https://community.make.com/t/how-to-extract-specific-text-from-the-value/3134/2 "2022-07-28T06:19:21Z")

</div>

Hey @Yong_Yun,

This is a somewhat advanced, but you can do this using regex. Simply use the text parser ‘Match pattern’ action, and use the expression `[+-]?(\d+(\.\d+)?|\.\d+)([eE][+-]?\d+)?` for the pattern to match and select the text you’d like to extract the numbers from in the ‘text’ field.

 ![CleanShot 2022-07-28 at 08.15.19](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/e/e18239db0d2733239f1394b92fe3095377cdc576.png)  
 ![CleanShot 2022-07-28 at 08.19.41](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/b/bf52dd72e691e08562ba1c89fa1e342b5e5d00f9.png)

Hope this was helpful!

---

<div class="post-metadata">

**Author:** ![Yong\_Yun](https://avatars.discourse-cdn.com/v4/letter/y/edb3f5/32.png) [@Yong\_Yun](https://community.make.com/u/Yong_Yun)\
**Post date:** [July 28, 2022, 6:40am UTC](https://community.make.com/t/how-to-extract-specific-text-from-the-value/3134/3 "2022-07-28T06:40:44Z")

</div>

Hi @NocodeNoah  
That’s really helpful!

But I have another question…  
It seems like this regex can extract all numbers in the value.

My next question is, what about this value?  
In this value this regex works same?

- Value : 12345678: This is 2 text value

Please help me. Thanks!

---

<div class="post-metadata">

**Author:** ![NocodeNoah](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/nocodenoah/32/1477_2.png) [@NocodeNoah](https://community.make.com/u/NocodeNoah)\
**Post date:** [July 28, 2022, 7:16am UTC](https://community.make.com/t/how-to-extract-specific-text-from-the-value/3134/4 "2022-07-28T07:16:17Z")

</div>

Hey @Yong_Yun,

![CleanShot 2022-07-28 at 09.13.54](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/c/c7a5df61a295e6480ec1c4562cf2008e253d20df.png)

Yes, that should also work! I would encourage you to try different situations and see if this expression suits your needs. If you want a extract something else from a text, you can try [https://regex101.com/](https://regex101.com/) or [https://regex-generator.olafneumann.org/](https://regex-generator.olafneumann.org/) to help you find the right expression for your needs.

---

<div class="post-metadata">

**Author:** ![Yong\_Yun](https://avatars.discourse-cdn.com/v4/letter/y/edb3f5/32.png) [@Yong\_Yun](https://community.make.com/u/Yong_Yun)\
**Post date:** [July 28, 2022, 7:20am UTC](https://community.make.com/t/how-to-extract-specific-text-from-the-value/3134/5 "2022-07-28T07:20:13Z")

</div>

Hey @NocodeNoah ,

That’s really helpful, Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Yuji\_Yamanaka](https://avatars.discourse-cdn.com/v4/letter/y/ce7236/32.png) [@Yuji\_Yamanaka](https://community.make.com/u/Yuji_Yamanaka)\
**Post date:** [February 15, 2023, 1:02am UTC](https://community.make.com/t/how-to-extract-specific-text-from-the-value/3134/6 "2023-02-15T01:02:17Z")

</div>

I faced very similar problem but solved thanks for your guide.

Actually, I had put “[0-9]+” in the “pattern” box to find numbers from a text which is like you exampled, but failed.

- 12345678 : This is a test value

Then I tried to copy&paste “[±]?(\d+(.\d+)?|.\d+)([eE][±]?\d+)?” to it and turned to be worked!!  
But I’m still not sure why it did not work by putting “[0-9]+” as pattern.  
The regex does not extract any floats or logarithms but it should pick up integer.

Sorry for basic question but I’m appreciated if you have any instruction.  
Thanks!!  
Yuji Yamanaka

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [September 7, 2023, 3:36pm UTC](https://community.make.com/t/how-to-extract-specific-text-from-the-value/3134/7 "2023-09-07T15:36:10Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


