Skip to content

Instantly share code, notes, and snippets.

@dennym
Created January 14, 2014 17:25

Revisions

  1. dennym renamed this gist Jan 14, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. dennym created this gist Jan 14, 2014.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    params[:url]="http:google.com+42min"
    expire = params[:url].gsub!(/\+(\d+)min/) #=> <MatchData "+42min" 1:"42">