"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> schrieb:[color=blue]
> need pattern to determine if value is an integer (0-9 digits only) > 0
>
> Regex.IsMatch(< Input>, "????")[/color]
"^\d*$" or "^[0-9]*$".
--
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:[color=blue]
> "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> schrieb:[color=green]
>> need pattern to determine if value is an integer (0-9 digits only) > 0
>>
>> Regex.IsMatch(< Input>, "????")[/color]
>
> "^\d*$" or "^[0-9]*$".[/color]
Or possibly "^\d+$". "^\d*$" will match an empty string, which probably
isn't a valid integer, depending on context.
Comment