08-06-2010 02:23 PM - edited 03-11-2019 11:22 AM
I'm trying to write a regular expression to block files with the extension of .lnk, but I can't get the end of line anchor ($) to work. So far I've come up with "\.[Ll][Nn][Kk]" and that blocks "test.lnk" but it also blocks "test.lnk.txt". I tried "\.[Ll][Nn][Kk]$" but it doesn't work. What am I doing wrong?
08-06-2010 03:55 PM
I hope this helps. I found the following sample in the link below:
http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a0080940e04.shtml#cre
regex urllist1 ".*\.([Ee][Xx][Ee]|[Cc][Oo][Mm]|[Bb][Aa][Tt]) HTTP/1.[01]"
!--- Extensions such as .exe, .com, .bat to be captured and
!--- provided the http version being used by web browser must be either 1.0 or 1.1
-KS
08-06-2010 07:57 PM
Terry,
The ASA/PIX Regex engine does not suppor the end of string anchor ($). Bug CSCsm89915 has been filed as an enhancement to get this functionality into the regex engine. Unfortunately there has been no movement on that enhancement sine 2008. If this is something that would be helpful in your production environment, please contact your account team (if applicable) so they can help drive this bug.
- Magnus
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide