in reply to find one by one occurances
You could split your string into words and examine each word.
If the word contains four connected digits, print the previous two words, the examined word itself, and the following two words.
|
---|
In Section
Seekers of Perl Wisdom