how to match filename with regexp

The title says it, need to create a layer7 filter to match a filename in a url.

eg. url: xyz.com/abc.txt

Any help would be appreciated