I\'ve a pretty simple question. I\'ve a file containing several columns and I want to filter them using awk.
So the column of interest is the 6th column and I want to fi
Regexes cannot check for numeric values. "A number from 1 to 100" is outside what regexes can do. What you can do is check for "1-3 digits."
You want something like this
/\d{1,3}[SM]\d{1,3}[SM]/
Note that the character class [SM] doesn't have the ! alternation character. You would only need that if you were writing it as (S|M).