Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2012-05-27から1日間の記事一覧

パフォーマンス オプティカルマウス G400購入

マウスを購入。 先代のBlue Focusが購入一ヶ月そこそこで壊れるという暴挙。 購入後にAmazonのレビューをみたら1〜2ヶ月で壊れたという人が多く嫌な予感がしていたら案の定。 結局PC付属の標準マウスで代用していたのだが、買い直すことを決意。 今回は失敗…

書籍 Regular Expressions Cookbook | Match Previously Matched Text Again

パンくず 書籍 Regular Expressions Cookbook Match Previously Matched Text Again 概要 前回一致した内容を再びマッチさせる方法について 構文 \b(\w)\1\b サンプル # 2文字の数値の繰り返しが出てきたら@に置換 pp "12age1212age1234age".gsub(/([\d]{2})…

書籍 Regular Expressions Cookbook | Group and Capture Parts of the Match

パンくず 書籍 Regular Expressions Cookbook Group and Capture Parts of the Match 概要 複数用語を1つのグループとしてマッチさせる方法について。 構文 Groups(複数の候補の中から一つだけでも一致すればマッチ) \b(one|two|three)\b Noncapturing gro…