Trying to create a regex that grabs the conditions and statements from if statements.
Currently I have this.
But it only matches single line statements such as
When I need it to match multi-line statements such as
Been testing here any help would be much appreciated :)
Currently I have this.
Code
if\((.*)\)[\r\n]*{[\r\n]*(.*)[\r\n]*}But it only matches single line statements such as
Code
if(value >= 5)
{
DoSomething();
}When I need it to match multi-line statements such as
Code
if(value >= 5)
{
DoSomething();
DoSomethingElse();
}Been testing here any help would be much appreciated :)


![[Image: giminur.gif]](https://i.imgur.com/giminur.gif)