Difference between revisions of "ReNamer:Rules:RegEx"
Jump to navigation
Jump to search
(Category:ReNamer added) |
m (typo) |
||
Line 1: | Line 1: | ||
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Translit|next=ReNamer:Rules:PascalScript}} | {{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Translit|next=ReNamer:Rules:PascalScript}} | ||
− | [[Image:RegExRule.png|center]] | + | [[Image:RegExRule.png|center]] |
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. Regular Expressions are very powerful and they are ''really'' worth learning. 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. Regular Expressions are very powerful and they are ''really'' worth learning. The [[ReNamer:Regular Expressions|RegEx syntax]] is explained in the appendix. |
Revision as of 14:56, 21 September 2010
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. Regular Expressions are very powerful and they are really worth learning. The RegEx syntax is explained in the appendix.
(The TRegExpr RegEx engine used by ReNamer is a little different from the standard PERL RegEx or Windows RegEx. You may check the correct syntax in here)
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 selected, the extension will be ignored by 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.