LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Regular expression that detects all numbers (integer or float ) in any string ?

Solved!
Go to solution

I don't believe it's possible to do what you want with a regex.  When you do a search for a regex, what gets returned is whatever portion of the input string matches the regex.  It will be an intact section of the input string; it will not be edited.  In other words, the search engine will not remove & discard pieces from the middle.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 11 of 16
(1,486 Views)

What are you really trying to do?

 

Why are the numbers coming in all mixed up with the other characters?

0 Kudos
Message 12 of 16
(1,478 Views)

hi,

I try to extract just numbers from any String ?

example: 

Qwerty12,45n67kiol89,

i want in the output : 12456789

0 Kudos
Message 13 of 16
(1,450 Views)

But why are you getting a string that has letters in it?  Where is this string coming from?

0 Kudos
Message 14 of 16
(1,442 Views)
Solution
Accepted by topic author imadouino

It's easyer to remove everything that is not a digit. If you want to keep the comma add it to the character class.

Ben64

usingregex.png

Message 15 of 16
(1,438 Views)

Thank youuuuuuuuuuuuuuu 

0 Kudos
Message 16 of 16
(1,409 Views)