|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
regular expression pattern ?need pattern to determine if value is an integer (0-9 digits only) > 0
Regex.IsMatch(<Input>, "????") "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> schrieb: "^\d*$" or "^[0-9]*$".> need pattern to determine if value is an integer (0-9 digits only) > 0 > > Regex.IsMatch(<Input>, "????") -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> On 2006-05-06, Herfried K. Wagner [MVP] <hirf-spam-me-here@gmx.at> wrote:
> "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> schrieb: Or possibly "^\d+$". "^\d*$" will match an empty string, which probably>> need pattern to determine if value is an integer (0-9 digits only) > 0 >> >> Regex.IsMatch(<Input>, "????") > > "^\d*$" or "^[0-9]*$". isn't a valid integer, depending on context. |
|||||||||||||||||||||||