Users Pricing

forum

Home Forums Regex.IsMatch clarification using C# – MindStick

Regex.IsMatch clarification using C#

Andrew Deniel 3490 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

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md