Skip to content

Instantly share code, notes, and snippets.

@debreczeni
Created November 18, 2011 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debreczeni/1376793 to your computer and use it in GitHub Desktop.
Save debreczeni/1376793 to your computer and use it in GitHub Desktop.
annotate header regex test
/^#[\t ]+\w+[\t ]+(?:(?::\w+)|(?:\([\w,]+\)(?:[\t ]+\w+)?))(?:[\t ]+[\w, ]+)?$/
# == Schema Information
#
# Table name: programmes
#
# id :integer not null, primary key
# starts_at :datetime not null
# show_id :integer not null
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# index_programmes_on_starts_at_and_show_id (starts_at,show_id) UNIQUE
# index_programmes_on_show_id (show_id)
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment