Category: C#

  • A couple of regex recipes in C#

    For my own reference. Hope it’s helpful to you as well. Given this text pattern: Keyword blah blah keyword blah Line I don’t care. Keyword blah blah keyword blah I want everything after this line. Good stuff Good stuff Recipe 1: Returning all lines with keyword: [code language=”c#”] //string pattern = @”keyword .+ keyword .+”; […]