Topic: Regular Expressions help.
Okay, I'm having some trouble with Regex. I have this string:
'What is %? <input name="auth">'
I have this Regex applied to this string:
Matches all % characters not followed by a \
preg_replace('/[^\\\\]%/', $this->literal, $formatting);
This is the output:
What isfive times three?
I want the space to remain between the 'is' and 'five', so essentially, the output should be: 'What is five times three?'. How can I do this? What am I doing wrong?