Open main menu

CDOT Wiki β

Changes

Tutorial9: Regular Expressions

55 bytes added, 08:27, 13 March 2021
Complex / Extended Regular Expressions
''Complex Regular Expressions'' use symbols to help match text for more <u>precise</u> (complex) patterns.<br>The most common complex regular expression symbols are displayed below:
<br><br>
:'''Anchors: ''' <span style="color:blue;font-family:courier;font-weight:bold;">^</span> , <span style="color:blue;font-family:courier;font-weight:bold;">$</span><br>Match lines the begin (^) or end ($) with a pattern.<br>:'''Single Character:''' &nbsp; <span style="color:blue;font-family:courier;font-weight:bold;">.</span><br>Represents a single character that can be any type of character.<br>:'''Character Class:''' <span style="color:blue;font-family:courier;font-weight:bold;">[ ]</span> , <span style="color:blue;font-family:courier;font-weight:bold;">[^ ]</span><br>Represents a single character but with restrictions.<br>
:'''Zero or More Occurrence:''' <span style="font-family:courier;font-weight:bold;">*</span><br>Zero or more occurrences of previous character.<br><br>
13,420
edits