Description: Accepts an unsigned integer number. Also matches empty strings. Matches: [123], [000], [43] [ More Details] Non-Matches: [asbc], [-34], [3.1415] [ Test Expression] Average Rating: Not yet rated.
Regex r = new Regex("^([0-9]+)$"); Match m = r.Match("2342s"); if(m.Success){ MessageBox.Show("OK"); }else{ MessageBox.Show("False"); }
Description: Accepts an unsigned integer number. Also matches empty strings.
Matches: [123], [000], [43] [ More Details]
Non-Matches: [asbc], [-34], [3.1415] [ Test Expression]
Average Rating: Not yet rated.
Match m = r.Match("2342s");
if(m.Success){
MessageBox.Show("OK");
}else{
MessageBox.Show("False");
}