ereg
| From: | alexander sundli | Date: | Fri, 12 Sep 2003 07:32:24 +0000 |
| Subject: | ereg | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162385@lists.php.net to get a copy of this message | ||
I use this expression to remove oneline comments:
iereg_replace("//([^\n]*)\n",'',$code);
I need to make a check if this expression is inside a string. If it is, its
not a comment.
I think it has something to do with context..
Anyone who could help me?
thanx