Actions
Feature #19303
openResolv::IPv4::Regex variant without anchors
Status:
Open
Assignee:
-
Target version:
-
Description
require 'resolv'
p "match this IP: 10.0.0.1"[/match this IP: (#{Resolv::IPv4::Regex})/, 1]
This returns 'nil' because Resolv::IPv4::Regex is anchored with \A and \z.
I would like to have a variant of Resolv::IPv4::Regex available that is not anchored so that code would return '10.0.0.1'.
No data to display
Actions
Like0