M
Mr P
Lets say I want the CENTER 2 characters from any (even length) string?
123456 .. 34
ABC123 .. C1
1223 ..22
1234567890 .. 56
AB .. AB
is there A regex that can handle this for ANY even length string? Im
pretty good with regexes but I cant think of one that can handle it.
sorta like
s/(.+)(..)(.+)/$2/ where the length of $1 == length of $2..
Thanks!
123456 .. 34
ABC123 .. C1
1223 ..22
1234567890 .. 56
AB .. AB
is there A regex that can handle this for ANY even length string? Im
pretty good with regexes but I cant think of one that can handle it.
sorta like
s/(.+)(..)(.+)/$2/ where the length of $1 == length of $2..
Thanks!