Skip to content

Instantly share code, notes, and snippets.

View mabster's full-sized avatar

Matt Hamilton mabster

View GitHub Profile
@mabster
mabster / Program.cs
Created July 22, 2023 10:30
Parse a string into an array of tags (denoted by square brackets) and terms (which may be quoted to preserve whitespace).
using System;
using System.Linq;
public class Program
{
static readonly char[] _trmDelimiters = { ' ', ',', '.', '!', '/' };
static readonly char[] _tagDelimiters = { '[', ']' };
public static void Main()
{