Layer 7 Protocol and L2TP

Hello, I would like to know if anyone has any Layer 7 Protocol regxp to check for example .txt files in a vpn l2tp, layer 7 next to the mangle to identify packages with .txt, does anyone have something similar?