Difference between revisions of "Humdrum lab 7"

From CCARH Wiki
Jump to navigation Jump to search
Line 8: Line 8:
  
 
[[File:basic-regular-expressions.png|600px|center]]
 
[[File:basic-regular-expressions.png|600px|center]]
 +
 +
=== Dot metacharacter ==
 +
 +
The dot, or period, character is used to indicate any single character.  In the following example
 +
 +
[[File:basic-regular-expression-dot.png|500px|center]]

Revision as of 04:56, 4 May 2018

Regular Expressions

Basic Regular Expressions

"Basic" regular expressions are the initial implementation of grep, that came with unix in 1973. Here are the "metacharacters" in the basic implementation of regular expressions:

Basic-regular-expressions.png

= Dot metacharacter

The dot, or period, character is used to indicate any single character. In the following example

Basic-regular-expression-dot.png