I want to find the following value
PROCEDURE test {
test { }
}
from:
test {
PROCEDURE test {
test { }
}
}
My current Regex is:
PROCEDURE.*?{.*?(\}){2}
But it does not match. Does anyone have any idea how I can accomplish this?
What about this regex:
It matches pairs of {}.
However, if the procedure contains strings or comments that contain curly brackets it will fail.