label1.Text = System.Text.RegularExpressions.Regex.Match(textBox1.Text, "(?<=#)(.+)(?=#)").Value ' change label1 and textBox1 into the names of your label and text box
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)