module PositiveStringSupport::RegexpLibrary
Public Class Methods
regexp_for_parentheses_en()
click to toggle source
# File lib/positive_string_support/regexp_library.rb, line 15 def regexp_for_parentheses_en /([\(\<\|].+[\|\>\)])\Z/ end
regexp_for_parentheses_ja()
click to toggle source
括弧に対する正規表現(日本語) @return [Regexp]
# File lib/positive_string_support/regexp_library.rb, line 11 def regexp_for_parentheses_ja /([\((〈\|【].+[】\|〉)\)])\Z/ end
regexp_for_quotation()
click to toggle source
quotation に対する正規表現 @return [Regexp]
# File lib/positive_string_support/regexp_library.rb, line 21 def regexp_for_quotation /('.+')$/ end
string_of_hour_and_min()
click to toggle source
# File lib/positive_string_support/regexp_library.rb, line 5 def string_of_hour_and_min /\A( ?\d|\d{1,2})\:(\d{2})\Z/ end