Skip to content

Instantly share code, notes, and snippets.

View maate's full-sized avatar

Morten Maate maate

  • Schultz A/S
  • Copenhagen
View GitHub Profile
@maate
maate / gist:1492998
Created December 18, 2011 10:38
CaptureEvaluator for .NET Regex Engine
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
namespace RegexExtensions.RecursiveReplace
{
public static class RegexExtensions
@maate
maate / gist:1476622
Created December 14, 2011 13:45
Using .NET Regular Expressions to match and capture nested parenthesis
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace TestRegex
{
class Program
{
@maate
maate / gist:1409233
Created November 30, 2011 14:24
Set registry
using System;
public class HelloWorld
{
static public void Main ()
{
Microsoft.Win32.Registry.ClassesRoot.SetValue("foo", "bar");
}
}