Regular Expressions

This is a notes post and may not be as easy to follow as a de facto blog post.

These are some regular expressions that I find useful and / or interesting. Test them out using's debugger, and learn more about regexs at


Accept HTML-Style Tags

This accepts any HTML-style markup tags. The first capture group is the tag name, and the second is the text inside of the tag. At the moment, tag names can't have numbers, and tags can't have attributes.