Regex to match conditional IP address

خرید بک لینک

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?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: 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, نویسنده: استخدام کار بازدید: 385 تاريخ: سه شنبه 2 شهريور 1395 ساعت: 13:59

صفحه بندی