how can i search for a line containing a certain word/string and also how can i pick out a set line and edit only that line?
I did a search on Google:
www.phpedit.net/Help/FindReplace_RegularExpression_Examples.php php.benscom.com/manual/en/ref.pcre.php http://www.devshed.com/Server_Side/Administration/RegExp/page1.html
There are more to be found too. You will want to learn about Regular Expressions.