Somewhere in the code, something is probably trimming the leading spaces. Try "\s/\s". The "\s" means "any whitespace". That will match spaces and other characters such as tabs, but should be safe for what you are doing.
Edit:
Actually "\ /\ " (backslash space slash backslash space) will probably work as well. But, that risks the trailing space being lost. And it just looks weird to me.
Last edited by davidfor; 04-12-2016 at 10:05 PM.
|