Changes

Jump to: navigation, search

Tutorial9: Regular Expressions

198 bytes added, 08:30, 13 March 2021
Complex / Extended Regular Expressions
:*'''Repetition: <span style="color:blue;font-family:courier;font-weight:bold;">{min,max}'''</span><br>Allows for more precise repetitions. Using braces, you can specify<br>the '''minimum''' and/or '''maximum''' number of repetitions.
:*'''Grouping: <span style="color:blue;font-family:courier;font-weight:bold;">( )'''</span><br>Perhaps you want to search for repetition for a group of characters, a word, or a phase.<br>You can enclose them within brackets ( ) to specify a group.
:*'''or Condition: <span style="color:blue;font-family:courier;font-weight:bold;">|'''</span><br>Can be used with grouping 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 these complex regular expressions with the '''egrep''' command are displayed below:<br><br>
13,420
edits

Navigation menu