Regular Expression Question
| From: | Dylan Finney | Date: | Tue, 22 May 2001 21:32:45 +0000 |
| Subject: | Regular Expression Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53937@lists.php.net to get a copy of this message | ||
Hello,
I was wondering if there is a way to match a pattern, then delete the entire
line containing the pattern. I.E. (if I was searching for "pattern" in a
file containing
pattern:info:info:info
pattern2:info:info:info
pattern3:info:info:info
is there a way to delete the entire, and only the first line?)
or is there an easier way to just remove a line from a file?
thank you
Dylan Finney
www.healthcoast.com