Below in PHP, how to change it to C#??
Code:
$text = preg_replace("/\b($word)\b/i", '<span class="highlight_word">\1</span>', $text);