Difference between revisions of "ReNamer:Rules:Delete"

From den4b Wiki
Jump to navigation Jump to search
m (Added an example for 'Right-to-left' use.)
m (example cleanup)
Line 31: Line 31:
 
| We could say the '''From '''and '''Until''' positions would switch places. (The '''From '''point is at the right side and the '''Until''' point is on the left).  
 
| We could say the '''From '''and '''Until''' positions would switch places. (The '''From '''point is at the right side and the '''Until''' point is on the 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)
 
*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)
Example:<BR>
+
For example, to keep only the last 4 characters from the end, use:
To keep the last four chars at the right only, use<BR>
+
{|
 
+
! From
From &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Until<BR>
+
! Until
&nbsp; (o)Position 5 &nbsp; &nbsp;&nbsp;(o)Till the end<BR>
+
|-
 
+
| Position 5
[x] Skip extension &nbsp; [x] Right-to-left
+
| Till the end
 +
|}
  
 
|-
 
|-

Revision as of 16:17, 8 August 2010

Delete Rule

DeleteRule.png


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

The parameters are as follows:

Parameter Details
From Select either:
  • The position (count starts from 1)
  • The delimiter string (Note that typically , . / ( ) - and space are used as delimiters, but you can specify any letter/digit/sign or even couple of signs as delimiter) .
Until Same as above. In addition, you have the till the end option.
  • You can use two different delimiters in From and Until sections.
Skip extension If this check box is unselected, the extension will be included in the rule.
right-to-left We could say the From and Until positions would switch places. (The From point is at the right side and the Until point is on the 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 last 4 characters from the end, use:

From Until
Position 5 Till the end
Do not remove delimiter Will retain the delimiters
  • If you have used two different delimiters in From and Until sections, both of them will be retained.