Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.md #7211

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -483,13 +483,7 @@ The best way to understand how failregex works is to write one. Although we do n
<HOST> - - \[(\d{2})/\w{3}/\d{4}:
```

1. The next sequence is a series of two-digit numbers that make up the time. Because we defined the day of the month as a two-digit number in a capture group (the parentheses), we can backreference it using `\1` (since it is the *first* capture group). Again, the colons are literals:

```command
<HOST> - - \[(\d{2})/\w{3}/\d{4}:\1:\1:\1
```

If you do not want to use backreferences this can also be written as:
1. The next sequence is a series of two-digit numbers that make up the time. Again, the colons are literals:

```command
<HOST> - - \[\d{2}/\w{3}/\d{4}:\d{2}:\d{2}:\d{2}
Expand Down Expand Up @@ -617,4 +611,4 @@ CentOS 7 and Fedora additionally require two extra commands to be fully stopped

```command
systemctl disable --now fail2ban
```
```