Linux - Scripting and Scheduling

Describing Regular Expression

Regular Expressions are sequence of character use to find the pattern.
Regular Expression are built using the sequence of Meta character


Examples:

Wild Cards:
? - 0 or 1 of the previous element required
* - 0 or more of the previous element required
+ - One or more of the previous element require
. - which  match a single character at the location

Anchors: 
 Hat ^ - Will match beginning of the string
$ - Will match end of the string

Containers:
()Parenthesis :  Contain group of subgroup
[]Square Bracket: Contain Perticular set of items

Miscellaneous:
OR |
\ - To escape the meta character








Comments

Popular posts from this blog

SNMP Configuration on Brocade Switches

Netapp Clustered Ontap CLI Pocket Guide

Netapp 7-Mode Architecture