Changes

Jump to: navigation, search

Tutorial9: Regular Expressions

123 bytes added, 11:31, 27 February 2021
Complex Regular Expressions
:*'''Anchors: ''' <span style="font-family:courier;font-weight:bold;">^</span> , <span style="font-family:courier;font-weight:bold;">$</span><br>Match lines the begin (^) or end ($) with a pattern.<br><br>
:*'''Single Character:''' &nbsp; <span style="font-family:courier;font-weight:bold;">.</span><br>Represents a single character that can be any type of character.<br><br>
:*'''Character Class:''' <span style="font-family:courier;font-weight:bold;">[ ]</span> , <span style="font-family:courier;font-weight:bold;">[^ ]</span><br>Represents a single character but with restrictions.<br><br>:*'''Zero or More Occurrence:''' <span style="font-family:courier;font-weight:bold;">*</span><br>Zero or more occurrences of previous character.<br><br>
Examples of how to use these complex regular expressions with the grep command are displayed below:
13,420
edits

Navigation menu