Re: Help with REGEXP
- Date: Thu, 19 Mar 2015 10:10:06 -0400
- From: Michael Dykman <mdykman@xxxxxxxxx>
- Subject: Re: Help with REGEXP
Trying to pattern match ip addresses is a famous anti-pattern; it's one of
those things like you feel like it should work, but it won't.
Your case, however, is pretty specific. taking advantage of the limited
range (I will assume you only wanted 4 sections of IPv4)
this should come close:
On Thu, Mar 19, 2015 at 9:39 AM, Paul Halliday <paul.halliday@xxxxxxxxx>
> I am trying to pick out a range of IP addresses using REGEXP but
> failing miserably :)
> The pattern I want to match is:
> The regex I have looks like this:
> AND INET_NTOA(src_ip) REGEXP
> but, go fish. Thoughts?
> Paul Halliday
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql
- michael dykman
May the Source be with you.