Здравствуйте!
Нужна помощь в составлению регулярного выражения.
Нужно взять все от msgid ""до msgstr "" включая данные теги
Есть переменная $_file
В ней:
#: classes/CSV_Import.class.php:77
msgid "Zero records imported"
msgstr "Нулевой записи импортированы"
#: classes/CSV_Import.class.php:82
msgid ""
"There was an error uploading the file. This could be a problem with "
"permissions on the uploads directory."
msgstr ""
Сделал регулярку:
$line = preg_match('|msgid ""(.*)msgstr ""|mi', $_file, $arr);
Вывожу:
if ($line == 1)
{
echo '<pre>'; print_r($arr); echo '</pre>';
}
И $arr ничего нету