make regexp from minimatch string or regexp string