SplitNameByRegExpr 1.3.1

Content plugin to split filename by (PCRE) regular expression.


*** Setup options ***

The plugin stores settings in an ini file with the same name as the plugin and the ini extension (by default, SplitNameByRegExpr.ini).
Pre-configuration of the plugin is required before the first use.

Section with field settings starts with "Field_" and then immediately the field name: [Field_Name].
RegEx= - regular expression;
UseSplit= - use Split function;
CheckExtension= - include extension, sum of values: 1 - file extension, 2 - directory "extension" (default 2);
CheckFullPath= - the name of the file with the full path;
CaseSensitive= - case sensitive checking;
UnitsCount= - units count in field;
Reverse= - change order of matching results only: first result will be last and vice versa etc. UnitsCount does not affect to this option. 
Replace= - do replace, result is one field;
Replacement= - [regular] expression with the specified replacement string;
DebugOutput= - output results as a string (for debugging a regular expression);
DebugOutputQuote= - enclose each match in quotation marks (default is 0);
DebugOutputSeparator= - separator for debugging results (by default, an empty string will be a comma with a space). The "^" sign at the beginning indicates the character codes preceded by the "#" sign (for example, ^#20#20 or ^#0). For the separator character "^" at the very beginning, you need to double it;
ReplaceReturnEmptyIfNotMatch= - returns an empty string (in the replacement field) if the regular expression search did not match (otherwise the file name, default 0);
RegEx= - additional regular expression for the replacement field;
Replacement= - an additional [regular] expression to replace. N from one to ten, N may go inconsistently, the main match is RegExN and ReplacementN. The search stops at the first match.


*** Installing ***

Just enter to archive with plugin and TC ask you about plugin installing. 
Create new columns set (Configuration - Options - Custom columns - New).
Add new column with 'splitnamebyregexpr' field.


*** License agreement ***

This software provided "AS-IS" without warranty of any kind for non-commercial use.


*** Changes history ***

Ver 1.0:
 * initial release.

Ver 1.1:
 + UnitsCount and Reverse options.

Ver 1.2:
 * length of regular expression can be more than 2kB;
 + SplitNameByRegExpr.ini for manual setup:
   [SplitNameByRegExpr]
   ReloadOnReread=0 - re-read settings from ini when F2 pressed (cm_RereadSource command). Only update properties of existing fields (except UnitsCount). 

Ver 1.3:
 + Replace and Replacement options.

Ver 1.3.1:
 + ReplaceReturnEmptyIfNotMatch option, additional options RegExN, ReplacementN for replace field.


---
Suggestions, Wishes and bug reports are welcome!
ProgMan13, (ProgMan13@mail.ru)