/^a-eg-h/.match('f') gives null in Ruby
<p>The  expression <code>/^a-eg-h/.match('f')</code> gives me <code>nil</code> in Ruby interpretor(2.3.1). I'm unable to figure out whats wrong. </p>

<p>Any suggestions ?</p>

<p>Ruby documentations states 'above expression should return <code>#&lt;MatchData "f"&gt;</code>'.</p>