fir3net
PPS-Firenetbanner-780.5x190-30-03-17

Basic Regular Expressions (UNIX)

Basic Regular Expressions

^abc
BOL abc at the beginning of the line
abc$
EOL
abc at the end of the line
A*
Any amount of characters
matches any sqec or more of A`s i.e A, AAAAAA, AA, AAAAAAAAAA
.
Any 1 Character
Any Character
.*
Any Characters Any Characters
a[a-z0-9]c
Range
Between a and c any lowercase letter or number i.e a7c avc

Tags: UNIX

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001