Skip to content

Instantly share code, notes, and snippets.

@evandavis
Last active December 10, 2015 06:08
Show Gist options
  • Select an option

  • Save evandavis/4392719 to your computer and use it in GitHub Desktop.

Select an option

Save evandavis/4392719 to your computer and use it in GitHub Desktop.

Revisions

  1. Evan Davis revised this gist Dec 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Week 3.js
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    var re = /^(20(0[0-9]|1[0-2])|1[0-9]{3})\/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|30)\s([0-1][0-9]|2[0-3]):([0-5][0-9])(:[0-5][0-9])?$/
    var re = /^(20(0[0-9]|1[0-2])|1[0-9]{3})\/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|30)\s([0-1][0-9]|2[0-3]):([0-5][0-9])(:[0-5][0-9])?$/;
  2. Evan Davis revised this gist Dec 27, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Week 5.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    var re = /^\d{1,3}((,|\s)\d{3})*(\.\d+)?$/;
  3. Evan Davis revised this gist Dec 27, 2012. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  4. Evan Davis revised this gist Dec 27, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions regex_tues_20120925.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ''.replace(/(?:^|([^*]))\*([^*].*?[^*]+)\*(?!\*)/ig, "$1<em>$2</em>");
  5. Evan Davis created this gist Dec 27, 2012.
    1 change: 1 addition & 0 deletions regex_tues_20120918.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    var re = /^(20(0[0-9]|1[0-2])|1[0-9]{3})\/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|30)\s([0-1][0-9]|2[0-3]):([0-5][0-9])(:[0-5][0-9])?$/