regex designer returns only 2k results?

joma

Client
Регистрация
06.03.2011
Сообщения
107
Благодарностей
13
Баллы
0
Hello,

I was trying to return results from a page with the regex designer but i get a 'too many matches' in the end...is it caped at 2k results?

thanks
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
Hello, you can do this with C# code. I can provide a sample if needed
 

joma

Client
Регистрация
06.03.2011
Сообщения
107
Благодарностей
13
Баллы
0

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
JavaScript:
var list =project.Lists["listName"];  // change listName to the name of your list with results
var pattern = @"\d+"; // regex here
var input = instance.ActiveTab.PageText;
var regex = new System.Text.RegularExpressions.Regex(pattern);
var matches = regex.Matches(input);
for(int i =0;i<matches.Count;i++)
{
	list.Add(matches[i].Value);
}
 
  • Спасибо
Реакции: joma

qlithe

Новичок
Регистрация
07.06.2015
Сообщения
16
Благодарностей
0
Баллы
1
Hey, I've tried with the normal way and through C# but there seems to be a limit of 2000?

RegExp builder too many matches
 

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
785
Баллы
113
i think you regexp builder shows the groups. produce more information of your task: source code and regular expression.
 

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