Pattern recompiled per line

Code reviewMedium18 min

Your task

Review this Java method that masks card-like numbers in each log line. It runs on millions of lines per export.