This expression contains a single sub-expression, which is marked by its being enclosed in parentheses. You may, however, wish to use only part of the text that was matched.įor example, if you wished to pair C/C++ #define directives based on the identifier being defined, you could use an expression like this: ^\s*#define\s+(_]_]*) Use sequences of characters matching these selected sub-expressions to pair linesīy default, Merge will use the entire sequence of characters that matches a regular expression to pair lines. You can enter a sample line of text into this field to see which parts will be matched by the regular expression you have entered and thus be used for line-pairing. See Use sequences of characters matching these selected sub-expressions to pair lines below for further information. However, it is also possible to use sub-expressions so that only parts of the text matched by the regular expression are used to pair lines. The status text underneath the entry field indicates whether the provided regular expression is syntactically correct.īy default, when a line matches the regular expression, all of the matching characters are used for line-pairing. A summary of regular expression syntax may be found below. Provide the regular expression definition in this field. Use this field to provide a succinct description of the line-pairing rule. Please see the Line Pairing topic for further information about the purpose of line-pairing rules. Use the controls in this window to edit the definition of a line-pairing rule.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |