Skip to content

Instantly share code, notes, and snippets.

@ikikko
ikikko / Regexp.groovy
Created October 10, 2010 16:24
g100pon #59 正規表現(基本編)
// g100pon #59 正規表現(基本編)
def target = 'The rain in Spain stays mainly in the plain!'
def pattern = /\b\w*ain\b/ // '*ain'で終わる単語
// ========== パターン検索 ==========
// String.eachMatch
def eachMatch = ''
target.eachMatch(pattern) {match ->
eachMatch += match + ' '
@ikikko
ikikko / gist:13316
Created September 27, 2008 11:46 — forked from szsk/gist:3883
SBM Comments Viewer
// ==UserScript==
// @name SBM Comments Viewer
// @namespace http://white.s151.xrea.com/wiki/index.php?script/SBMCommentsViewer
// @description Show social bookmark's comments at the bottom of your browser.
// @include *
// ==/UserScript==
/*
Last Modified: 2007.11.01