The following program does not find a match, I was expecting it to:
class Program
{
static void Main(string[] args)
{
if (Regex.IsMatch("t1", "\bt1\b"))
{
return; // I was expecting this to be hit but it is not
}
}
}
Can anyone point out what I have done wrong?
Anonymous User
14-Oct-2013You need to escape \b