Forum Moderators: phranque
The easiest way to do that is to take both strings and line up the common parts vertically, then drop anything that doesn't have to be kept (like the IP address parts) that is not common (X's in third line).
http://66\.218\.(64¦[78][0-9]¦9[0-5])\.[0-9]{1,3}/search/___cache.*www\.example\.com
http://66\.102\.11\.104__________________________/search\?q=cache.*www\.example\.com
________________________________________________________XXXX________________________
http://66\.(218\.(64¦[78][0-9]¦9[0-5])\.[0-9]{1,3}¦102\.11\.104)/search.*cache.*www\.example\.com
The funny thing is that I was thinking about doing this in my own files just this morning -- and probably for the same reason! :)
Jim