^10\.\d+\.\d+\.\d+$/g
So I'm trying to create a RegEx that hits all the 10.x.x.x addresses. (So 10.0.0.0/8)
And I came up with what's above. When I test it on RegEx testing websites (I've tried a few) I get no match.
From what I understand:
It matches 10.x, then adds the previous and looks for x., then the previous, then x., until it hits the full 10.x.x.x. However it doesn't seem to work.
I'm sure that \d hits any digit.
I'm at a loss of why this is failing as it seems correct to me.
Could the RegEx tests be wrong, or am I missing something?