Changes

Jump to: navigation, search

ULI101 Week 9

39 bytes added, 21:33, 4 November 2018
Asterisk '*'
| Will match
|-
| <code>/cartcar*/</code>
| car, carpool, cart, caret
|-
|}
== Dollar '<code>$</code>' ==
Matches strings at the end of the line, (anchoring matches to the end of the line). Examples of dollar in regular expressions are:
|}
== Grouping '<code>()</code>' and grouping with alteration '<code>(|)</code>' ==
Parentheses can be used to create bracketed regular expressions. The parentheses group the regular expression inside. The parentheses are not matched, only what is inside. Grouping offers alteration/choice represented by the pipe (|). When a grouped expression is followed by a quantifier such as the asterisk, the quantifier applies to the entire group Examples of grouping with and without alteration are:
<blockquote><code>grep</code> requires the <code>-E</code> option to enable grouping
</blockquote>
 
= Search and Replace in vi =
572
edits

Navigation menu