M
Manzi [MVP]
Hi Guys,
Check the following code. I just used them in the Page_Load of an ASP.Net
page.
------------------------------------------------------------------------------
//using System.Text.RegularExpressions;
Regex regex = new Regex("real~(ity)");
Response.Write(regex.Match("realty").Success.ToString()); // Returns
False
Response.Write(regex.Match("really").Success.ToString()); // Returns
False
Response.Write(regex.Match("reality").Success.ToString()); // Returns
False
------------------------------------------------------------------------------
According to MSDN, the first two lines should return True. But when I check
this in VS2005 Beta2, it returns false for the first two lines.
Any reason you can think about?
Thanks
Manzi
Check the following code. I just used them in the Page_Load of an ASP.Net
page.
------------------------------------------------------------------------------
//using System.Text.RegularExpressions;
Regex regex = new Regex("real~(ity)");
Response.Write(regex.Match("realty").Success.ToString()); // Returns
False
Response.Write(regex.Match("really").Success.ToString()); // Returns
False
Response.Write(regex.Match("reality").Success.ToString()); // Returns
False
------------------------------------------------------------------------------
According to MSDN, the first two lines should return True. But when I check
this in VS2005 Beta2, it returns false for the first two lines.
Any reason you can think about?
Thanks
Manzi