Is there a built in function for doing this? Or is there some way to do it that any of you know of?
When I use preg_grep, I get a bunch of null values for lines that didnt match.