Get output number into string of characters that contains a number

Hello Makers,
As an input, I get the following string : Stéatite 200L stable

What the simplest way to get only the number “200” as the ouput ?

I tried {{parseNumber("Stéatite 200L stable";,)}} but I got this error :
Failed to map ‘1.value’: Function ‘parseNumber’ finished with error! ‘e200e’ is not a valid number or using unsuitable separator.

Hi @Garry_V,
The easiest way is to use the Regex pattern "\d+" and then convert the result to a number.
You can use the Text Parser’s Match Pattern function for this.

@Kirill_Vodopianov thank you. Sorry, it doesn’t work, it’s empty


Hi @Garry_V ,
It’s really strange and looks like a Make’s bug.
But if you will change Global match to “Yes”, it will work

1 Like

Now it works :slight_smile:
Thank you

1 Like