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

From: Date: Tue, 28 May 2013 21:40:11 +0000
Subject: RE: [PHP] need some regex help to strip out // comments but not http:// urls
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-321223@lists.php.net to get a copy of this message
> From: David Harkness [mailto:david.h@highgearmedia.com] > > 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.

« previous php.general (#321223) next »