We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Regex.new in method → constant — Creating a Regex inside a method recompiles on each call. Extract to a constant.
Regex
def parse(str) regex = /pattern/ regex.match(str) end
There was an error while loading. Please reload this page.