|
|
|
|
|
by cutler
588 days ago
|
|
I specified the use case so why "meaningless"? Here's the code: Raku
for 'logs1.txt'.IO.lines -> $_ { .say if $_ ~~ /<<\w ** 15>>/; }
Python
from re import search
with open('logs1.txt', 'r') as fh:
for line in fh:
if search(r'\b\w{15}\b', line): print(line, end='')
|
|