[Mono-bugs] [Bug 571334] String from textbox returns invalid characters for parsing?

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 16 08:21:03 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=571334

http://bugzilla.novell.com/show_bug.cgi?id=571334#c3


--- Comment #3 from Juan Cardona <giovanni at cardona.com> 2010-01-16 13:21:01 UTC ---
Update: I tried a workaround, using a regular expression... but it returns
null.

 string str = txtDiceNum.Text.Trim();
 Match r = new Regex(@"^[\+\-]?\d*\.?[Ee]?[\+\-]?\d*$",
RegexOptions.IgnorePatternWhitespace).Match(str);

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list