D
Dan Holmes
i have this:
new System.Text.RegularExpressions.Regex("^\d+$") // \d by itself
failed as well.
but the compiler generates "unrecognized escape sequence". so i changed
it to this:
new System.Text.RegularExpressions.Regex("^[0-9]+$")
and it worked fine.
What am i doing wrong? Also are the ^ and $ reguired if i use the \d?
This is vs2005 if that matters.
dan
new System.Text.RegularExpressions.Regex("^\d+$") // \d by itself
failed as well.
but the compiler generates "unrecognized escape sequence". so i changed
it to this:
new System.Text.RegularExpressions.Regex("^[0-9]+$")
and it worked fine.
What am i doing wrong? Also are the ^ and $ reguired if i use the \d?
This is vs2005 if that matters.
dan