
December 19th, 2011, 05:17 PM
|
 |
Turn left at the third duck
|
|
Join Date: Dec 2011
Location: Nelson, NZ
|
|
Hi there,
I'll say at the outset that I am not familiar with MPlex, but since no one replied so far I thought I would try to give you a hand with a fairly standard syntax.
This expression works using a number of regex flavors: PCRE, Java, Perl, .NET.
Code:
(?s)#define[^(]*?\([^)]*?\)
It matches the define block in your example.
In other flavors, you could remove the inline flag for "dot-matches new line"---the "(?s)" and turn that on using your local syntax.
Hoping this works for you. Please let me know.
|