Skip to content

Instantly share code, notes, and snippets.

View Grundell's full-sized avatar

Max Grundell Grundell

  • Stockholm
View GitHub Profile
@Grundell
Grundell / gist:7526597
Created November 18, 2013 11:53
Fetching data new regexp.
#!/usr/bin/env ruby
require 'net/http'
require 'pp'
require 'benchmark'
Pleading = Struct.new(:no, :position ,:person, :party, :replik, :content, :point)
Point = Struct.new(:no, :title)
class DocumentParsing
POINT_REGEX = /^(?<no>\d+)\s+\§\s+(?<title>.+?)\s?$/