Skip to content

Commit

Permalink
Formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spriggsy83 committed Nov 1, 2024
1 parent b9ffee0 commit 8e9dd14
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions episodes/03-egrep-find.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,13 @@ echo "11/06/91 5/9/2018" | grep -E -o '[0-9]+/[0-9]+/[0-9]+'

## Try it 5

Have a look at 'namesndates.txt' (```cat namesndates.txt```)
1. Use 'grep -E -o' on namesndates.txt to list times (e.g. 20:57).
2. Use 'grep -E -o' on namesndates.txt to list all calendar dates.
3. Consider extra information we know about dates: days will be at most 31, months at most 12.
Could we use aspects of this information within our regex for more sensibleness checking?
Have a look at 'namesndates.txt' (```cat namesndates.txt```)

1. Use 'grep -E -o' on namesndates.txt to list times (e.g. 20:57).
2. Use 'grep -E -o' on namesndates.txt to list all calendar dates.
3. Consider extra information we know about dates: days will be at most 31, months at most 12.
Could we use aspects of this information within our regex for more sensibleness checking?

:::::::::::::::::::::::: solution

## Solution
Expand Down

0 comments on commit 8e9dd14

Please sign in to comment.