Difference between revisions of "ReNamer:Rules:Delete"

From den4b Wiki
Jump to navigation Jump to search
(Clarified the "skip extension" option.)
 
(4 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
<center>[[Image:DeleteRule.png]]</center>
 
<center>[[Image:DeleteRule.png]]</center>
  
This rule will delete all characters located between the '''From''' and the '''Until ''' positions. Optionally, it can delete from the specified position till the end of the name.  
+
This rule will delete all characters located between the '''From''' and the '''Until ''' positions. Optionally, it can delete from the specified position till the end of the name.  
  
 
The parameters are as follows:  
 
The parameters are as follows:  
Line 19: Line 19:
 
*The starting position (count starts from 1)  
 
*The starting position (count starts from 1)  
 
*The delimiter from where the deletion starts.
 
*The delimiter from where the deletion starts.
The delimiter can be a single character or even a string.
+
**The delimiter can be a single character or even a string.
** Typically ''', . / ( ) -''' and space are used as delimiters.
+
**Typically ''', . / ( ) -''' and space are used as delimiters.
  
 
|-
 
|-
Line 26: Line 26:
 
| Till which point you want to delete:
 
| Till which point you want to delete:
 
Select from the following options:  
 
Select from the following options:  
* Count: How many characters to be deleted, starting with the START position.  
+
*Count: Specify how many characters to be deleted, starting from the FROM position.  
*Delete till a specified delimiter is reached.
+
*Delete till a specified delimiter is reached.  
The delimiter can be a single character or even a string.
+
**You can use two different delimiters in '''From '''and '''Until''' sections.
** Typically ''', . / ( ) -''' and space are used as delimiters.
+
**The delimiter can be a single character or even a string.
 +
**Typically ''', . / ( ) -''' and space are used as delimiters.
 +
*Delete all characters till the end.
  
Same as above. In addition, you have the '''''till the end''''' option.
+
|-
*You can use two different delimiters in '''From '''and '''Until''' sections.
+
| Delete current name
 +
| A shortcut option for deleting the whole current name.
  
 
|-
 
|-
 
| Skip extension  
 
| Skip extension  
| If this check box is unselected, the extension will be included in the rule.
+
| If checked, the file extension will be excluded from the processing and will remain unaffected.
 
|-
 
|-
 
| Right-to-left  
 
| Right-to-left  
| If you select this option, ReNamer counts the position from the extreme right. (The '''From ''' and '''Until''' positions switch places.)
+
| Inverts the normal direction for counting a position, so that the count goes from right and towards left.
*When this option is selected, the "till the end" option in '''Until''' deletes all characters on the left (what we regard as the ''beginning'' of the name)
+
 
For example, to keep only the four characters on the right side of the name (and delete all the rest of the characters on the left), use:
+
When this option is selected, the "till the end" option in '''Until''' deletes all characters on the left, what we normally regard as the ''beginning'' of the name.
{|
+
 
! From
+
For example, to keep only the four characters on the right side of the name and delete all the rest of the characters on the left, use:
! Until
+
 
|-
+
* '''From:''' Position 5
| Position 5
+
* '''Until:''' Till the end
| Till the end
 
|}
 
  
 
|-
 
|-
 
| Do not remove delimiters  
 
| Do not remove delimiters  
| Will retain the delimiters  
+
| If you select this option, the delimiters themselves will be retained.
*If you have used two different delimiters in '''From '''and '''Until''' sections, ''both'' of them will be retained.
+
 
 +
If you have used two different delimiters in '''From '''and '''Until''' sections, ''both'' of them will be retained.
  
 
|}
 
|}
  
 
[[Category:ReNamer]]
 
[[Category:ReNamer]]

Latest revision as of 02:27, 1 April 2022

Delete Rule

DeleteRule.png

This rule will delete all characters located between the From and the Until positions. Optionally, it can delete from the specified position till the end of the name.

The parameters are as follows:

Parameter Details
From From which character-position you want to start the deletion.

Select from the following options:

  • The starting position (count starts from 1)
  • The delimiter from where the deletion starts.
    • The delimiter can be a single character or even a string.
    • Typically , . / ( ) - and space are used as delimiters.
Until Till which point you want to delete:

Select from the following options:

  • Count: Specify how many characters to be deleted, starting from the FROM position.
  • Delete till a specified delimiter is reached.
    • You can use two different delimiters in From and Until sections.
    • The delimiter can be a single character or even a string.
    • Typically , . / ( ) - and space are used as delimiters.
  • Delete all characters till the end.
Delete current name A shortcut option for deleting the whole current name.
Skip extension If checked, the file extension will be excluded from the processing and will remain unaffected.
Right-to-left Inverts the normal direction for counting a position, so that the count goes from right and towards left.

When this option is selected, the "till the end" option in Until deletes all characters on the left, what we normally regard as the beginning of the name.

For example, to keep only the four characters on the right side of the name and delete all the rest of the characters on the left, use:

  • From: Position 5
  • Until: Till the end
Do not remove delimiters If you select this option, the delimiters themselves will be retained.

If you have used two different delimiters in From and Until sections, both of them will be retained.