Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69329

regular expression (*, +)

$
0
0

Hi,

 

 

I have a simple but complicated question on regular expression using star(*) and (+).


When I wanted to detect a floating number, I used [-+]?[0-9]+\.?[0-9]+ but found [-+]?[0-9]*\.?[0-9]+ is more popular in expert people.


In this expression, * was used in the decimal part but + used in the floating part.

 

In definition, * can exclude a character itself but + need to get the number definitely.


Can you give me wrong example for "[-+]?[0-9]+\.?[0-9]+" which can detect a number rightly by "[-+]?[0-9]*\.?[0-9]+ " ?

 

labmaster.


Viewing all articles
Browse latest Browse all 69329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>