Case insensitive search.

I have implemented a regular expression search system where preg_match() search a particular word in file. The problem with this fuunction is it is case sensative that is it searches when exact case is found,but not the exact word for example preg_match(). what is the solution?

In the preg_match function to create a regular expression that is case insensitive you just need to add "/i" and that should do the job. You can refer the following thread for complete detailsMastering Regular Expression