Open main menu

CDOT Wiki β

Changes

Tutorial9: Regular Expressions

10 bytes added, 08:37, 13 March 2021
Complex / Extended Regular Expressions
:'''Groups:''' <span style="color:blue;font-family:courier;font-weight:bold;">( )</span><br>Allows you to search for repetition for a '''group of characters''', a '''word''', or a '''phase'''.<br>You enclose them within brackets <span style="font-family:courier;font-weight:bold;">( )</span> to specify a '''group'''.
:'''or Condition:''' <span style="color:blue;font-family:courier;font-weight:bold;">|</span><br>Can be used with '''groups ''' to match a variety of character(s), words or phases.<br>The | symbol is used to separate the variety of character(s) within a ''group''.<br><br>
:Examples of how to use '''extended regular expressions''' with the '''egrep''' command are displayed below:<br><br>
13,420
edits