On 2016-11-17 10:39, timlen tse wrote:
> I think you want `String#[] `  for example:
>  "sample"[/\d+/]
>  # => nil
Thank you!


Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>