I'm trying to write pattern to recognize formula IF form string.
e.g. string
[@param_6@] @IF(@param_5@==null;@param_5@;@IF(1==1;@param_2@;@param_4@)@)@ - @param_3@ - <@IF(@parameter_tag2@ == null;@param_4@;@param_5@)@>
I want to obtain this result
1. Match: @IF(@param_5@==null;@param_5@;@IF(1==1;@param_2@;@param_4@)@)@
2. Match: @IF(@parameter_tag2@ == null;@param_4@;@param_5@)@
My pattern look like:
@IF\(.*\;.*\;.*\)@
But regex return me wrong result.