Tbpgr Blog

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

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

書籍 Regular Expressions Cookbook | Matching IPv4 Addresses

パンくず 書籍 Regular Expressions Cookbook Matching IPv4 Addresses 概要 IPv4のバリデーションについて サンプル subject = Array.new subject << "192.168.0.1" # => match subject << "255.255.255.255" # => match subject << "1.1.1.1" # => match s…

書籍 Regular Expressions Cookbook | Validating URLs

パンくず 書籍 Regular Expressions Cookbook Validating URLs 概要 URLのValidationについて サンプル subject = Array.new subject << "http://test.com" # => match subject << "https://test.cpm" # => match subject << "ftp://hoge" # => match subjec…