gapic-generator/lib/gapic/path_pattern/segment.rb
def to_regex_str
        if pattern == "**"
          ".*"
        else
          "[^/]+"
        end
      end
##
# Creates a string with a regex representation of this segment's pattern
# @return [String]
Creates a string with a regex representation of this segment's pattern
Creates a string with a regex representation of this segment ' s pattern
def to_regex_str
        if pattern == "**"
          ".*"
        else
          "[^/]+"
        end
      end
def to_regex_str if pattern == "**" ".*" else "[^/]+" end end
Creates a string with a regex representation of this segment's pattern
Creates a string with a regex representation of this segment ' s pattern
None
String