E
E
exedis2015-10-22 11:27:14
PHP
exedis, 2015-10-22 11:27:14

How to display all messages with regular expression?

Hello, how can I display just messages that match a regular expression along with messages? For example, there is an array: messages with links, and a regular expression for certain links. How to display all messages without links and with them the messages with links that matched with the regex?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Skorik, 2015-10-22
@Omutik

Replace the links with preg_replace in the message with '' and output.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question