Trying to do a simple REGEX match on file names. I’m trying to pull out any file in the TargetFilename field that has a .aspx or .config or .cs or .php or .dll extension
Putting just .dll|.aspx doesn’t work
Here’s the syntax I tried, but it bombs out. Any insight is appreciated
rule “find message - Web Files”
when
regex("\\*.aspx|\\*.cs|\\*.config|\\*.php|\\*.dll", to_string($message.TargetFilename)).matches == true
then
end