I am interested in highlighting files like WinRAR archives (r00, r34, ...).
It's quite sure it is needed to use RegExp.
Here is some samples I used but none of them really worked:
\w+\.r[0-9]+
\w+\.r\d+
\w+\.r\d\d
I tried \\w+\\.r[0-9][0-9] in Linux (egrep) and it worked. I tried that (with and without double \\) in TC and nothing happened.
regular expressions
Moderators: Hacker, petermad, Stefan2, white
Re: regular expressions
from Totalcmd.hlpmrbeeye wrote:I am interested in highlighting files like WinRAR archives (r00, r34, ...).
It's quite sure it is needed to use RegExp.
Here is some samples I used but none of them really worked:
\w+\.r[0-9]+
\w+\.r\d+
\w+\.r\d\d
I tried \\w+\\.r[0-9][0-9] in Linux (egrep) and it worked. I tried that (with and without double \\) in TC and nothing happened.
Code: Select all
New: You can now also use regular expressions. They need to be started with a "<" character, to distinguish them from normal search strings.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
regular expressions
Yeah. It worked except the one with [0-9].
Re: regular expressions
As I said: Theey wored all fine for me. Including '[0-9]+' and '[0-9][0-9]'.mrbeeye wrote:Yeah. It worked except the one with [0-9].
Maybe you missed the [+] while testing?
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
regular expressions
Yeah. Thanks.
It really works.
I don't know what I've done before.
It really works.
I don't know what I've done before.