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

  • Автор темы Автор темы peter
  • Дата начала Дата начала

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!
 
Attach full text that you use for research and what you need to find.
 
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.
 

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