• Ruby Regexp why this expression does not match?

    From vunangluc@gmail.com@21:1/5 to All on Fri Dec 2 20:51:46 2016
    I want to use this regex to match any block comment (c-style) in a string.
    But why the below does not?


    rblockcmt = Regexp.new "/\\*[.\s]*?\\*/" # match block comment
    p rblockcmt=~"/* 22/Nov - add fee update */"

    nil

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)