Track Java
Java track

Grep

An exercise from the Java track
medium

About this exercise

Search a file for lines matching a regular expression pattern. Return the line number and contents of each matching line.

files
filtering
pattern matching
searching
strings
View all solutions