I'm trying to set up a service policy that allow access to only a few websites, but I'm having trouble using regexp to match URLs.
The problem is that end of string ($) does not work on the ASA.
This expression works fine
ASA# test regex www.google.com \.google\.com
INFO: Regular expression match succeeded.
while this one fail.
ASA# test regex www.google.com \.google\.com$
INFO: Regular expression match failed.
According to this page, $ is not a supported metacharacter.
The problem with the first expression is that it will match any string that contains .google.com including, for example, www.google.com.thisisnotreallygoogle.net
I'm not an expert on regexp, is there any way to write the second expression that will work on the ASA or any other way to do the matching?