I am coding a PHP pm system.
In it, when a user hits reply, the server adds a
However, I only want there to be one trailing message.
Therefore, is there a way in PHP Regex to remove everything between the tags, and them remove the quote tags themselves?
For example, if the input was:
Here is my reply.
The output should be:
Here is my reply.
Thanks for the help, but when I do that, it just adds the quote on with the rest of it....
I just want EVERYTHING within the quotes deleted including the
In it, when a user hits reply, the server adds a
to each end of the message so when the user replies, the old message will show up as a quote...and a
However, I only want there to be one trailing message.
Therefore, is there a way in PHP Regex to remove everything between the tags, and them remove the quote tags themselves?
For example, if the input was:
Here is my reply.
My first message
The output should be:
Here is my reply.
Thanks for the help, but when I do that, it just adds the quote on with the rest of it....
I just want EVERYTHING within the quotes deleted including the
itself, so if the input was:
Here is a reply.
my first message!
The output should be:
Here is my reply.