Answer the question
In order to leave comments, you need to log in
How to find all characters including tabs and newlines?
How to select all characters including wrapping to a new line
I tried this way <p>(.*)(.\n)<\/p>
I’m not strong in regulars, please help
Answer the question
In order to leave comments, you need to log in
All characters in a paragraph? Then:
preg_match("/<p>(.*?)<\/p>/ism", $text, $result);
// Это результат с Р $result[0];
// Это результат без Р т.е. чисто между ними что было $result[1];
preg_match_all("/<img(.*?)>/ism", $text, $result);
var_dump($result);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question