I am wanting to grep for 192.168.22.xxx and 192.168.23.xxx. with a single grep statement where xxx can be any number.
I have tried
grep -Eo '192.168.2[2][3].[0-9]{1,3}'
and
grep -Eo '173.235.2[2][3][.][0-9]{1,3}'
But this does not retu anything. What is the correct regex I need to be using?
برچسب: regex to match string,regex to match anything,regex to match ip address,regex to match url,regex to match any string,regex to match,regex to match numbers,regex to match date,regex to match email,regex to match any character,
نویسنده: استخدام کار