Wrong regex in okf-xml-resx

Issue #559 resolved
YvesS created an issue

From Christof: (See https://groups.yahoo.com/neo/groups/okapitools/conversations/messages/5162)

I noticed today that the okf-xml-resx filter has a wrong regex

The original filter contains the lines:

<okp:codeFinder useCodeFinder="yes">#v1
   count.i=1
   rule0=(?&lt;!\\)\{[^}]+?\}
 </okp:codeFinder>

But that regex has a wrong starting bracket and not matching bracket pair. It should be something like:

 <okp:codeFinder useCodeFinder="yes">#v1
    count.i=2
    rule0=&lt;(/?)\w[^&lt;]*?&gt;
    rule1=(#\w+?\#)|(%\d+?%)
  </okp:codeFinder>

The later code actually helps finding html inline codes.

Comments (2)

  1. Log in to comment