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
Post a Comment