Skip to content

Instantly share code, notes, and snippets.

View chrisenytc's full-sized avatar
👨‍💻
Building a new society

Christopher Enytc chrisenytc

👨‍💻
Building a new society
View GitHub Profile

Regular Expressions

Basic Syntax

  • /.../: Start and end regex delimiters
  • |: Alternation
  • (): Grouping
<!doctype html>
<html ng-app="myApp">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<script type="text/javascript">
var myApp = angular.module('myApp', [], function ($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
});
@chrisenytc
chrisenytc / 0_reuse_code.js
Created December 12, 2013 00:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console