2012-05-21から1日間の記事一覧
パンくず 書籍 Regular Expressions Cookbook Nonprinting characters table 概要 非表示文字を正規表現で表す場合の一覧 表 文法 意味 \a bell \e escape \f form feed \n line feed(改行) \r carriage return \t horizontal tab(タブ) \v vertical tab(垂…
パンくず 書籍 Regular Expressions Cookbook Ignore Case (?i)ascii 概要 大文字小文字を無視する方法について 構文 (?i)ascii サンプル require "pp" pp /(?i)hoge/ =~ "HoGe" pp /hoge/ =~ "HoGe" 結果 0 nil
概要 Oreillyの英書「Regular Expressions Cookbook」の学習まとめ。 自分の中で既知の情報は除外してまとめるため書籍全般をカバーするわけではない。 正規表現の動作確認はRubyで行います。 各章 Chapter 1. Introduction to Regular Expressions とくにな…
とあるJava開発での設計の話。お弁当箱の中におにぎりが入っていて、 おにぎりは米と海苔と塩で出来ている というような感じの構造の設計を依頼された。 class LunchBox { private RiceBall riceBall;//おにぎり //略 } class RiceBall { private Rice rice;…