instance method Regexp#hash

hash -> Integer[permalink][rdoc][edit]

正規表現のオプションやテキストに基づいたハッシュ値を返します。



p /abc/i.hash # => 4893115
p /abc/.hash  # => 4856055