cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regex in PHP Transaction Detection Rules is not working

I am inputting my regex in PCRE format and it's still not working. I am trying to exclude all static resources in one Regex.

(?i).*\.(jpeg|jpg|png|gif|jpeg|pdf|txt|js|html|tff|css|svg|png|pdf|dll|yml|yaml|ico|env|gz|bak)$

3 REPLIES 3

Ryan.Paredez
Community Manager

Hi @Muhammad Husnain.Ashfaq,

It's been a few days and it seems the Community has not jumped in with a reply. Did you happen to make a discovery or find a solution you could share?

If you have not, you can try contacting AppDynamics Support: How do I submit a Support ticket? An FAQ 


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.

I have found solution. for PHP Agent regex needs to wrapped in # sings. After i used my regex as below it worked

#(?i).*\.(jpeg|jpg|png|gif|jpeg|pdf|txt|js|html|tff|css|svg|png|pdf|dll|yml|yaml|ico|env|gz|bak)$#

Ryan.Paredez
Community Manager

Hi @Muhammad Husnain.Ashfaq,

Thank you for coming back to the community and sharing the solution! 


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.