View Single Post
Old 04-12-2016, 10:01 PM   #9
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
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.
davidfor is offline   Reply With Quote