I do a file_get_contents
to get a long file and I would like to find the line (there is only one) which starts with "MyParam" (for example).
I don't want to cut the file line by line, I want to do it with a preg_match
only (or equivalent).
I've tried many things but no success.
Thanks in advance
FILE CONTENT
//some text
//some text
//MyParam "red"
//some text
MyParam "blue"
Some text
// Some text
And I would like to get MyParam "blue"
only.