Perl Regular Expressions: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 10: Line 10:
=Overview=
=Overview=


Perl's [[Regular Expressions Concepts#Flavor|flavor]] of regular expressions is relatively similar to [[Grep Regular Expressions#Overview|grep's]], but it has a richer set of metacharacters.
Perl's [[Regular Expressions Concepts#Flavor|flavor]] of regular expressions is relatively similar to [[Grep Regular Expressions#Overview|grep's]], but it has a richer set of [[Regular Expressions Concepts#Metacharacters| metacharacters]].


=Greedy/Reluctant=
=Greedy/Reluctant=

Latest revision as of 03:45, 30 July 2017

External

Internal

Overview

Perl's flavor of regular expressions is relatively similar to grep's, but it has a richer set of metacharacters.

Greedy/Reluctant

By default, the regular expressions are greedy.

To make then reluctant, use "*?".