Renaming Rules 

SharePoint does not permit certain characters in folder and file names. Dockit 365 Migrator provides an ability to rename invalid character(s) to valid character(s) and also support any character(s) to be renamed using rules, thereby eliminating the tedious step of renaming the source folders / files.

Dockit 365 Migrator uses 'Regular Expressions' technique which enables you to create generic renaming rules in order to specify the pattern for file name conventions in Renaming rules page. The 'regular expressions' technique is widely used in software where pattern matching is crucial.

Also, this technique defines some of the operators ( [ - ! " $ & ' ( ) * + , . / : ; < = > ? @ [ \ ] _ ` { | } ] ^ ) as reserved and have their own meaning in the pattern syntax. If any of these operators are placed in your file name and you wish to replace with some other string, you need to use '\' (backslash) as an escape sequence character in Dockit 365 Migrator Renaming Rules, which will suppress its role and treat them as normal characters like 'A', '1'. Otherwise, there is a chance to misinterpret your rule and hence the resultant file name may not be as expected.

The renaming rules page will appear as shown below :

1.

Folder Renaming Rule :

You can add or remove rules for folder renaming rule. This helps to rename invalid characters in SharePoint to a valid folder name.

Truncate folder names :

Truncate long folders names by specifying the folder name length to use before importing them to a SharePoint library.
Select appropriate checkbox for folder and enter a valid character length for folder .

Note : Dockit 365 Migrator leaves the source folder name as-is if the folder name length is less than the specified value and truncates if the length exceeds the value before importing them to SharePoint.

2.

File Renaming Rule :

You can add or remove rules for file renaming rule. This helps to rename invalid characters in SharePoint to a valid file name.

Truncate file names :

Truncate long file names by specifying the file name length to use before importing them to a SharePoint library.
Select appropriate checkbox for file and enter a valid character length for file name.

Note :
Dockit 365 Migrator leaves the source file name as-is if the file name length is less than the specified value and truncates if the length  exceeds the value before importing them to SharePoint.

 
Sample Renaming Rules 
Sample renaming rules:

File Name Find Replace Result Remarks
SampleV1 *V1 {empty} Sample Truncate V1, if the file ends with V1
SampleV1 *V1 A SampleA Replace V1 with A, if the file name ends with V1
Hello_World Hello_* {empty} World Truncate Hello_, if the file name starts with Hello_
Hello_World *_World {empty} Hello Truncate _World, if file name ends with _World
SampleV1 v? {empty} Sample Truncate V and the file name character following it (immediately succeeding character), if the file names contains V and followed by any one character.
Sample ?p {empty} Sale Truncate one character preceding the letter p in the file name.
SampleV12 V?? {empty} Sample Truncate two characters following the character / letter V in the file name.
SampleFileVersion *File* {empty} SampleVersion Truncate the word 'File' in any position in the file name.
Sample.Matrix \. Dot SampleDotMatrix Example of escape sequence for .
Sample?File \? Text SampleTextFile Example of escape sequence for ?
Hello*World \* {empty} HelloWorld Example of escape sequence for *
Sample$ \$ Dollar SampleDollar Example of escape sequence for $
Sample^File \^ {empty} SampleFile Example of escape sequence for ^
Sample+Document \+ Plus SamplePlusDocument Example of escape sequence for +
Hello<World \< {empty} HelloWorld Example of escape sequence for <
Hello>World \> {empty} HelloWorld Example of escape sequence for >
[Document \[ Word WordDocument Example of escape sequence for [
Word] \] Document WordDocument Example of escape sequence for ]
(File \( Sample SampleFile Example of escape sequence for (
Sample) \) Document SampleDocument Example of escape sequence for )