RegEx in pultiple files multi-line pattern
pcregrep -h -r --include=".*\.cs" -M "LogEvent\([\s\S]*?\)\;" .
-r: recursive --include: include file names that matches with the pattern -M: multi-line mode PATTERN: match all occurrence even if it is multi-line
Example: await LogEvent($"This is a test message that has embedded {property}");
pcregrep -h -r --include=".*\.cs" -o1 -M "LogEvent\(([\s\S]*?)\)\;" .