RE: [PHP] reg expressions
| From: | Chris W. Parker | Date: | Fri, 25 Mar 2005 21:19:44 +0000 |
| Subject: | RE: [PHP] reg expressions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211599@lists.php.net to get a copy of this message | ||
Steve Buehler <mailto:steve@ibapp.com>
on Friday, March 25, 2005 11:50 AM said:
> It would also be fine to just do a loop that checks each line.
> Since I guess that would be quicker. If the line starts with
> a #, then ignore it, otherwise, do some other stuff.
Yeah do this. You don't need a regular expression in this case. Look at
the string functions in the PHP manual (http://php.net/substr) to find
out how to check what the first character of the line is.
Does that help?
Chris.