[Ответить в тред] Ответить в тред

03/04/16 - Набор в модераторы 03.04 по 8.04
26/03/16 - Конкурс: Помоги гомункулу обрести семью!
15/10/15 - Набор в модераторы 15.10 по 17.10



[Назад][Обновить тред][Вниз][Каталог] [ Автообновление ] 2 | 1 | 1
Назад Вниз Каталог Обновить

Регулярки Аноним 04/06/16 Суб 14:55:22  761220  
14650413225750.jpg (63Кб, 604x453)
Вопрос по регулярным выражениям.
(?<=^|\s)\p{javaUpperCase}.?[\.?!](?=$|\s)
Должно выводить все предложения, а выводит через одно, я подозреваю что нужно какой то флаг поставить, или хз.

Сам текст:
45 Welcome to RegExr v 2 .1 by gskinner.com, proudly hosted by Media Temple!

Edit the Expression & Text to see matches. Roll over matches or the expression for details. Undo mistakes with ctrl-z. Save Favorites & Share expressions with friends or the Community. Explore your results with Tools. A full Reference & Help is available in the Library, or watch the video Tutorial.

Sample text for testing:
abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789 _+-.,!@#$% 4 56 ^ &();\/|вв 5 ввв<>"' f
12345 -98.7 3.141 .6180 ff9,0000 +42

Z f bcd 43.43 432 и л фвыа 89 .98.

А выводит:
Welcome to RegExr v 2 .1 by gskinner.com, proudly hosted by Media Temple!Edit the Expression & Text to see matches.
Roll over matches or the expression for details.
Undo mistakes with ctrl-z.
Save Favorites & Share expressions with friends or the Community.
Explore your results with Tools.
Аноним 04/06/16 Суб 15:08:23  761228
бамп
Аноним 04/06/16 Суб 15:15:33  761230
бамп

[Назад][Обновить тред][Вверх][Каталог] [Реквест разбана] [Подписаться на тред] [ ] 2 | 1 | 1
Назад Вверх Каталог Обновить

Топ тредов