Answer the question
In order to leave comments, you need to log in
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
Replace the links with preg_replace in the message with '' and output.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question