RE: [PHP] need some regex help to strip out // comments but not http:// urls

[email protected] ("Daevid Vincent")
Newsgroups php.general
Message-ID <[email protected]>
> From: David Harkness [mailto:[email protected]]
> 
> We have been using a native jsmin extension [1] which does a lot more
> without any trouble for over two years now. It's much faster than the
> equivalent PHP solution and is probably tested by a lot more people than a
> home-grown version. You might want to check it out before going too far
> down this path.
> 
> Good luck,
> David
> 
> [1] http://www.ypass.net/software/php_jsmin/

I appreciate the pointer, but our files, like many people, is a mixture of
HTML, PHP and JS in one file. This jsmin appears to only work on .js files
right? Also, everything else works great in our minifing method, just this
edge case.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.