i'm getting nuts with an regular expression. I have a string like this:
%closed% closed (%closed_percent%\%), %open% open (%open_percent%\%)
What I need is a regular expression that matches the following:
%closed%
%closed_percent%
%open%
%open_percent%
but not the two \%
At the moment I use:
\%([^\%]+)\%
that gives me:
%closed%
%closed_percent%
%), %
% open (%
...
Anyone can help me with that?