Tutorial by Examples

using System.Text.RegularExpressions; string pattern = ":(.*?):"; string lookup = "--:text in here:--"; // Instanciate your regex object and pass a pattern to it Regex rgxLookup = new Regex(pattern, RegexOptions.Singleline, TimeSpan.FromSeconds(1)); // Get the match from y...
using System.Text.RegularExpressions; List<string> found = new List<string>(); string pattern = ":(.*?):"; string lookup = "--:text in here:--:another one:-:third one:---!123:fourth:"; // Instanciate your regex object and pass a pattern to it Regex rgxLookup = ...

Page 1 of 1