Thread:DoCheonGong/@comment-24200325-20161108101333/@comment-25122955-20161225063348

Roseturnip wrote: Can you tell me how the "[ ]", "{1,}", "( | )", "?" and "$" codes work? Usage:


 * [ ]: Matches a single character that is contained within the brackets.
 * {1,}: The preceding item is matched 1(minimum) or more times.
 * {1,10}: The preceding item is matched 1(minimum) or more times, but not more than 10(maximum) times.
 * ( | ): The string matched within the parentheses can be recalled later (see the next entry, \n). A marked subexpression is also called a block or capturing group.
 * ?: The question mark indicates zero or one occurrences of the preceding element. For example, colou?r matches both "color" and "colour".
 * $: Matches the ending position of the string or the position just before a string-ending newline. In line-based tools, it matches the ending position of any line.

The content source is here.