php - I want to replace all dots with br except that dots between digits and after shortcut words -


i want replace dots br except dots between digits , after shortcut words.

for example:

this number 1.4 hi dr. david, name ayman. how you. 

converted to

this number 1.4 hi dr. david, name ayman <br /> how <br /> 

you can play bit negative lookbehind/lookahead expressions. example

(?<!dr|mr|mrs|miss)\.(?!\d) 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -