Advanced Find & Regular Expressions

Hi!

I'm trying to find all my .tpl files that mention the number 27. I don't want the search to match things like 270 or 627 for example so here is the pattern I use [i](^|[^\d])27([^\d]|$)[/i], that should work properly (tested it with some tools).

So, I checked "name", "match", "*.tpl", "Use wildcards" and "And", "Contains", "Match", "%pattern%", "Use regular expression".

With that I get the .tpl files that have 270 or 627 in it... There's something I don't get. Any idea?

Thanks a lot,

Oscar

\d doesn't work in Opus at the moment; use a range instead.

e.g. instead of [^\d] use [^0-9]

There's an appendix near the back of the manual which gives the syntax of the regular expression flavour which Opus uses.

Excellent, thank you!

Oh, by the way, I don't know if it's possible and to be released, or maybe already existing, but that would be very interesting to have the results shown with some glimpses of where the match occured in the files; for example as tree nodes under the file results showing:

  • file1.tpl
    ...have 27 dogs and would like adopt another one...
  • file2.tpl
  • file3.tpl