Help with sed regex to match words via a pattern.
Hello everyone!
I have some lines of text and I want to detect words that meet some criteria with sed.
E.g. The line "tetris cat dog test cactus stereotype"
I want to detect the word that contains two (2) ore more t letters. That mean the words tetris, test and stereotype.
The following regex doesn't do the job because it can;t distinguish words very well.
/.*t.*t.*//
I thinks I have ti incorporate something like [^ ] in the regex but I wasn't successful...
Any help?
|