forum

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

Regex.IsMatch clarification using C#

Andrew Deniel 3284 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?


c# c# 
Updated on 14-Oct-2013
Can you answer this question?

Answer

1 Answers

Liked By