Вопрос

I have a list of 1000 e-mail addresses separated by semicolons in Notepad ++, and I am trying to select the first 100 with a regular expression.

My list looks like this:

jack@gmail.com; bill@outlook.com; bianca@yahoo.fr;...

I used the following regex but it doesn't work (no match found):

([^;]+;){100}
Это было полезно?

Решение

Notepad++ does not support quantifiers until version 6.0. The problem may simply be updating Notepad++ to the latest version

6.0 Release Notes: http://notepad-plus-plus.org/news/notepad-6.0-release.html

Другие советы

Try this, should work with less than 100 addresses as well (which I expect is your problem):

^([^;]+;){1,100}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top