Thread
:
regular expresion (clean the spaces)
View Single Post
04-05-2011, 09:03 AM
#
4
itimpi
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I would think that you could replace \s*(\s-\s) with something like \s*-\s* to allow any number of spaces either side of the dash. The current expression REQUIRES there to be at least one space either side.
itimpi
View Public Profile
Visit itimpi's homepage!
Find More Posts by itimpi
Track Posts by itimpi via RSS