Регулярное выражение - удалить абзац с английским текстом. По количеству слов.

palarmaz
На сайте с 05.04.2010
Offline
125
540

Помогите составить регулярку. Жирный текст нужно удалить. Думаю нужно делать поиск по количеству подряд идущих англ. слов.

Тут идет русский текст, описание на русском… И т.д.

Fire at the National Personnel Records Center damaged or destroyed 16-18 million Army and Air Force records that documented the service history of former military personnel discharged from 1912-1964. Although the information in many of these primary source records was either badly damaged or completely destroyed, often alternate record sources can be used to reconstruct the service of the veterans impacted by the fire.

Описание: free, download, tags
Тип: optimal and free
Архив: zip

Тест регулярки здесь: http://www.rubular.com/

siv1987
На сайте с 02.04.2009
Offline
427
#1
palarmaz:
Думаю нужно делать поиск по количеству подряд идущих англ. слов.

ну если вы так думаете

/[^а-я]{50,}/i

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий