Regexps like [\w\W]*?(?=Something) are extremely slow

peter

Пользователь
Регистрация
07.01.2012
Сообщения
40
Благодарностей
2
Баллы
8
Have no clue whether it is a problem of zenno or the regexp interpreter it uses but when you have a list with a few hundred lines, running regexps like:

[\w\W]*?(?=Something)

Are extremely slow, infact I could never ever wait for these operations to complete.
Do you have any idea what to use instead of it?

Thanks!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Attach full text that you use for research and what you need to find.
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Are you merging the list items first or going through them one by one? If you merge them, you are only performing one regular expression as opposed to 100's.
 

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