Regex question

irmscher

Client
Регистрация
28.11.2012
Сообщения
199
Благодарностей
6
Баллы
18
Why the following regex:

*,\s(and)\s.*?\.\s

from

I'm a keen programmer, and I don't want this project to get screwed. If I was a cook, and you were a gamer then we could be a good team. My friend like beer, and I love vodka. My parents are the best parents in the world. I think that everything is going to be alright, and some people are moaning too much. I wish I had more spare time, and then I could visit swimming pool more often.

grabs

I'm a keen programmer, and I don't want this project to get screwed. If I was a cook, and you were a gamer then we could be a good team. My friend like beer, and I love vodka. My parents are the best parents in the world. I think that everything is going to be alright, and some people are moaning too much.

instead of supposed

I'm a keen programmer, and I don't want this project to get screwed.
 

nevadahsot

Client
Регистрация
27.04.2012
Сообщения
106
Благодарностей
5
Баллы
18
I'm a keen programmer, and I don't want this project to get screwed. If I was a cook, and you were a gamer then we could be a good team. My friend like beer, and I love vodka. My parents are the best parents in the world. I think that everything is going to be alright, and some people are moaning too much. I wish I had more spare time, and then I could visit swimming pool more often.

Should be:

*?,\s(and)\s.*?\.\s
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Why overcomplicate things...

.*?\.
 

irmscher

Client
Регистрация
28.11.2012
Сообщения
199
Благодарностей
6
Баллы
18

irmscher

Client
Регистрация
28.11.2012
Сообщения
199
Благодарностей
6
Баллы
18
Ok, answering my own question

Just got back on working on this script and just figure out that it's:

.*?,\s(and).*?\.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)