pre_match -> String[permalink][rdoc][edit]() → String-
マッチした部分より前の文字列を返します($`と同じ)。
例/(bar)(BAZ)?/ =~ "foobarbaz" p $~.pre_match # => "foo"[SEE_ALSO] MatchData#post_match
pre_match -> String[permalink][rdoc][edit]() → Stringマッチした部分より前の文字列を返します($`と同じ)。
例/(bar)(BAZ)?/ =~ "foobarbaz"
p $~.pre_match # => "foo"
[SEE_ALSO] MatchData#post_match