Only the numbers

Hi! How are you all?
I’m having doubts about which Node I use for the lines to have only the numbers

Example:
It’s written: Single Room 208
What I need: 208

Please help me! Thanks!

I would use RegEx for this. It’s easiest to install the Palladian RegEx Extractor note, Regex Extractor — NodePit first.

In the node use a RegEx like (\d+), this will extract a group of one or more numbers from your string. If you only want to match numbers three digits long you could use (\d{3}) instead.

3 Likes