I have strings like
+200% just string
+20% other string
+350% other etc ..
I need a regex to remove +X% and get the following string only.
I tried it with
echo trim(preg_replace("/[+][0-9][%]/","",$str));
but that gives the same output as echo $str.
You need a
+after[0-9], meaning “one or more”: