Поиск по содержимому

Здесь можно найти старые закрытые темы.

Модератор: motyara

Закрыто
Аватара пользователя
Qwertiy
Охотник за багами
Сообщения: 1199
Зарегистрирован: Вс янв 31, 2010 12:12 am

Поиск по содержимому

Сообщение Qwertiy »

Что-то некорректно работает поиск по содержимому по регулярному выражению.

Регулярное выражение:

Код: Выделить всё

(?!/)\S[^\r\n]*?((?!\r|\n)\s){3}
найден файл:

Код: Выделить всё

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Just a title")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Qwertiy")]
[assembly: AssemblyProduct("Just a product")]
[assembly: AssemblyCopyright("Copyright © Qwertiy 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("00000000-0000-0000-0000-000000000000")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Build and Revision Numbers 
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Опции поиска
Опции поиска
UPDATE: Перемудрил немного с регуряркой, можно упростить до

Код: Выделить всё

(?!/)\S+? {3}
Аватара пользователя
Max Diesel
Автор программы
Сообщения: 3431
Зарегистрирован: Пт окт 12, 2007 3:26 pm
Контактная информация:

Сообщение Max Diesel »

Со следующего билда предположительно будет корректно. Благодарю за содействие.
Закрыто