Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require 'gyazz'
re = []
wiki = Gyazz.wiki('EpisoPassData')
wiki.pages.each do |page|
page.text.split(/\n/).each { |line|
if line =~ /^=(.*)$/ then
s = $1.sub(/\?$/,'')
re << s
end
}
end
s = "(" + re.join('|') + ")"
require 're_expand'
puts s.expand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.