How to make a PCRE TextMate snippet

Because I’ll Forget #1099:
Problem
Create a TextMate snippet that will build a label for a given input textbox using Human Cased words from an underscored name attribute.
Solution
TextMate snippets support Perl Regexps which is a beautiful, albeit scary, thing. Start by making the label in direct relation to the input tag’s “name.” The label’s “for” attribute should [...]

More