Hi
Can anyone help me with this problem please?
I have a long string that I would like to split into paragraphed
sentences. I would like to replace every full-stop or period ('.')
with the HTML tags "</p><p>", however, the string also contains
decimal numbers such as 2.4 and some sentences end with a number. But
no sentences starts with a number.
I am guessing I need to use preg_replace() ?
Thanks in advance.
Sam
Can anyone help me with this problem please?
I have a long string that I would like to split into paragraphed
sentences. I would like to replace every full-stop or period ('.')
with the HTML tags "</p><p>", however, the string also contains
decimal numbers such as 2.4 and some sentences end with a number. But
no sentences starts with a number.
I am guessing I need to use preg_replace() ?
Thanks in advance.
Sam
Comment