This is my raw data:
h24-71-249-14.ca.shawcable.net - - [07/Mar/2004:22:29:13 - 0800] "GET /icons/gnu-head-tiny.jpg HTTP/1.1" 200 3049
h24-71-249-14.ca.shawcable.net - - [07/Mar/2004:22:29:13 - 0800] "GET /icons/gnu-head-tiny HTTP/1.1" 200 3049
I want to be able to extract a file's name from the URI (if there is any, if there is not - ignore). The file can be any filetype (jpg, png, txt, etc.)
This is what I have so far:
(\"+)(.*?)(\.\w{1,3})
I know it is probably not a good idea to start my string from ", and it is probably the reason for my problem, so I'd like to get some help to fix my regex.
thank you!