|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Regular Expression for Integer and FloatI want to ask regading regular expression. I want to use such regular expression which only allow integers and float value. for example :-- 12 12.34 23.456 0.5 0.0 0 I found but not able to find. Please Help me . Suggest me the regular expression for that with regards Tarun sinha TARUN wrote:
> I want to use such regular expression which only allow integers and You really could have googled for "regular expression number" to find an > float value. > for example :-- > > 12 > 12.34 > 23.456 > 0.5 > 0.0 > 0 > > I found but not able to find. Please Help me . Suggest me the regular > expression for that answer like the "//Function to test whether the string is valid number or not" section at http://www.c-sharpcorner.com/Language/RegExpressionSample1.asp You didn't mention if number formats like 1.23e34, which is valid for a floating-point number, or negative numbers were acceptable for your purpose. Andrew
Create New RegistryKey
ContextMenu SQL query to Excel file Reading Items in an ArrayList MS Access Reports and VB.NET Program Wait for all ThreadPool workers to complete Representing Related Data within a DataGrid ComboBox Saving input in dropdown VB 2005 Email Programming Thread not getting value in named slot |
|||||||||||||||||||||||