<div dir="ltr">Hi. I'm kind of struggling with this one.<div><br></div><div>I need to check a lot of strings for the following:</div><div>TAB ( <at least 4 and not more than 10 numbers or minuses> ) TAB</div><div><br></div><div>I tried a lot of variations, I don't even remember them all, but here's one of them:</div><div>if [[ ${Rows[$i]} =~ \t[0-9\-]{4,}\t ]]; then<br></div><div><span class="" style="white-space:pre">      </span># Do something</div><div>fi</div><div><br></div><div>But so far with no success.</div><div>It SEEMS like the \t doesn't mean the TAB character, but that's not much more than a guess.</div><div>What I'm looking for in those strings are a date in parentheses, preceded by a TAB and superseded by a TAB. If I now let ↹ represent the TAB character and … represent any characters, here are the possible strings I am trying to look for with that if statement:</div><div>…↹(2016)↹…<br></div><div>…↹(2016-04)↹…<br></div><div>…↹(2016-04-22)↹…<br></div><div><br></div><div>Any thoughts?</div><div>I have done some searching but I always end up with too many hits, and so far all of those I looked further into were totally irrelevant, as far as I could see.</div><div><br></div><div><br></div><div><div>Kind regards</div><div><br></div><div>Johnny Rosenberg</div></div><div><br></div></div>