Skip to content

Instantly share code, notes, and snippets.

View regex2.d
import std.file, std.regex, std.stdio;
void main(string[] args)
{
if (args.length != 2)
return;
auto text = readText(args[1]);
enum common = `((?:func|for|if|else)[^{\n]*)\n`;
@zaydek-owl
zaydek-owl / regexes.d
Last active Aug 21, 2017
not for the faint of heart
View regexes.d
import std.file, std.regex, std.stdio, std.string;
void main(string[] args)
{
if (args.length != 2)
return ;
auto text = readText(args[1]);
/+
View test.d
import std.stdio;
void main()
{
writeln("hello, world!");
}