Users Pricing

forum

home / developersection / forums / regex.ismatch clarification using c#

Regex.IsMatch clarification using C#

Andrew Deniel 3360 14 Oct 2013

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?


1 Answers