1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/js/interpolation_expression.js
2010-08-23 22:08:33 -04:00

4 lines
No EOL
179 B
JavaScript

var dates, sentence, sep;
sentence = ("" + (22 / 7) + " is a decent approximation of π");
sep = "[.\\/\\- ]";
dates = (new RegExp("\\d+" + (sep) + "\\d+" + (sep) + "\\d+", "g"));