Hi! I�m new to regular expressions, and it seems to be an art to make it
work as expected.
I�m trying to remove all "single-line" comments from an string - that�s
everything after "//" to the end of a line. I expected that this would do
the job: ereg_replace("//[[:alnum:]]*\n","",$string), but it didn�t work.
Any tips?
TIA,
Daniel Wey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]