REGEX Help - Selecting a line between a specified number of Chracters.

steven_ucf

Client
Регистрация
06.09.2012
Сообщения
11
Благодарностей
0
Баллы
0
Hi, I am trying to create a regex command. I want to take a list and find the lines that have a specified amount of characters. I believe this, ^.{33,100}$ is the correct regex, but ZP does not seem to recognize it. This should find any lines that have between 33 and 100 characters.


Below is an example of 5 separate lines, of these 5 lines only the sentence "I'm a muslim and I won't accept it" should be chosen. I believe this is the correct regex command, could anybody help with another solution or a way to get this solution working.

^.{33,100}$


If he just wanted a second wife for no reason just cuz he wants too then no I wouldn't want that. This is the only reason I can think of right now.
I'm a muslim and i won't accept it
it will be kind of ok for me.
no i wouldn't
Yup. It is Allah سبحانه و تعالى‎ who has established that right. So if he wanted to take a second wife– regardless of the reason, I would let him.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Add your sentences to list.
Take each one of them and parse it with regex:

Код:
^(.|\s){30,100}$
If something is found - save. If not - take other line.
Sorf of.
 

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