if it's the exact same regexp as above, can you extract the `value.gsub(...)` part into a method?