Difference between revisions of "ReNamer:Rules:RegEx"

From den4b Wiki
Jump to: navigation, search
Line 3: Line 3:
 
This rule finds text that matches the specified RegEx pattern, and replaces it with another string. RegEx is short for '''Regular Expressions''', which stands for special syntax for describing search and replace patterns. The [[ReNamer:Regular Expressions|RegEx syntax]] is explained in the appendix.  
 
This rule finds text that matches the specified RegEx pattern, and replaces it with another string. RegEx is short for '''Regular Expressions''', which stands for special syntax for describing search and replace patterns. The [[ReNamer:Regular Expressions|RegEx syntax]] is explained in the appendix.  
  
(The RegEx engine used by ReNamer is a little different from the standard [http://perldoc.perl.org/perlre.html PERL RegEx] or [http://msdn.microsoft.com/en-us/library/6wzad2b2(VS.85).aspx Windows RegEx], so even if you arean experienced RegEx user, please have a look at the [[ReNamer:Regular Expressions|rules]]!)<br>  
+
(The RegEx engine used by ReNamer is a little different from the standard [http://perldoc.perl.org/perlre.html PERL RegEx] or [http://msdn.microsoft.com/en-us/library/6wzad2b2(VS.85).aspx Windows RegEx], so even if you are an experienced RegEx user, please have a look at the [[ReNamer:Regular Expressions|rules]]!)<br>  
  
 
<br> The parameters are as follows:  
 
<br> The parameters are as follows:  

Revision as of 03:22, 2 July 2009

RegEx Rule

RegExRule.png

This rule finds text that matches the specified RegEx pattern, and replaces it with another string. RegEx is short for Regular Expressions, which stands for special syntax for describing search and replace patterns. The RegEx syntax is explained in the appendix.

(The RegEx engine used by ReNamer is a little different from the standard PERL RegEx or Windows RegEx, so even if you are an experienced RegEx user, please have a look at the rules!)


The parameters are as follows:

Parameter Details
Expression RegEx pattern to match or find.
Replace RegEx pattern that replaces the found pattern.
Skip extension If this check box is unselected, the extension will be included in the rule.
Case-sensitive If this option is selected, ReNamer will search for the text in case-sensitive manner.

Tip: ReNamer users have posted many RegEx patterns at the User Forum. You can copy and use them.