pattern

javascript regular expression for pretty formatting user text

Hello I am doing a research here to find you the best way to format user text messages. A sample of what I am trying to achieve: 1) user sends this message: Doctor, I would like to have an appointment tomorrow morning.Please,call me! 2) my application formats this text outputting this: Doctor, I would like to have an appo...