Click here to Skip to main content
14,919,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Thanks for the help,

I worked around modifying regular expression (given to me here here) for different textbox, but i could't get what I neeed. I google it, many things found but not for what i want.

Dim valid AS Boolean = Regex.IsMatch(TextBox1.Text, "^(,?\d+){0,20}$")
<b>produce</b>
(32,1,6,32,12,21,21,54,675,8,4,3,2,9,0,21,21,21,43,744) perfect.


NOW i want 20 double numbers separated by commas in TextBox2 like
(32.43343,1.43,6.0,32.434334,12.43432,21.8776,21.89,54.22,675.1232,8.453,4.5454,3.87,2.00,9.65,0.0,21.12,21.2,21.1,43.5,744.3633).

Please help me out.


thanks ...
Posted

1 solution

Sounds like you want us to make your regular expression for you. What particular trouble are you having creating your regular expression?
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900