I'm using jQuery to pull a file asynchronously. I want to then sum the total of lines in that file that begin with "/". The file is a cache manifest and looks something like this...
/path/to/file.jpg
/path/to/another/file.css
etc.
Is there a simple approach to this? I've been messing with regex to get it done and not having much luck...


Reply With Quote
Bookmarks