How to use regular expressions to find specific text?
The point is that this text should be out of line, that is, outside the quotation marks. For example you need to find a design (comment) /*sample*/ in php code. Most importantly, you need to do so, how would the php interpreter.
"f sfs\"df/*sample*/sdf".'p\'and"in/*sample*/pvpv'/*sample*/ $hfhfh=5;
the first and second /*sample*/ should be skipped, and the third taken. The same should be taken into account escaping of quotes as a single and a double. It may have been somewhere finished the regular season not to write it from scratch, and then I have the head already around goes?