Hello All,

I am in need of a solution and I am thinking this is an easy, perhaps. 

I am passing a long string with various values seperated by the ":" symbol. 
Now, because the data is hand written sometimes there are space where there 
shouldn't or no space where there should.

ala.

Cart : Red Blouse:   Size :Green

should be:

Cart: Red Blouse: Size: Green

I imagine something like

replace("(?i:\:\s+)",": ")

replace("(?i:\s+\:)",":")

or



replace("(\s+\:\s+)",": ")

look right?



      
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to