ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

Regular expressions (regex) basics

Lesson 2.38 minBeginnerDecember 1, 2026

Sign in to read this lesson

Regex lets you search text for a pattern rather than a fixed word: "a line starting with a digit", "an IP address", "a name ending in .conf". grep, sed and awk all speak the same language, so you only need to learn it once.

What you will learn

  • ^ is the start of a line, $ the end: ^# is a line starting with #, ^$ an empty line.
  • . is any single character, the previous character 0 or more times, . means "anything".
  • [abc] is one character from the list, [0-9] a digit, [^0-9] a non-digit.
  • With grep -E, + (1 or more), ? (0 or 1), {n} (n times), | (or) and ( ) grouping work.
  • To search for a special character literally, put \ in front: \. is the dot itself.

The lesson has 5 key points, an explanation and 5 questions. It opens with a package.