Unable to filter with both regex and non-regex filters

Unable to filter with both regex and non-regex filters

mimicmimic Posts: 43Questions: 0Answers: 0
edited March 2009 in Bug reports
It is not possible to filter with both regex and non-regex filters. If you specify a regex on a column for example (fnFilter with regex escape false) and then use a non-regex filter on some other column (fnFilter with regex escape true) then also first filter is applied as a non-regex, what breaks its use.

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Good call - I agree that this should certainly be in (it's on the border between a new feature and a bug...!). I've implemented this now for global filtering and individual column filtering in 1.4.1 (out soon!).

    As a result you could now allow users to do a global regex filter using the DataTables input box by doing:
    oTable.fnSettings().oPreviousSearch.bEscapeRegex = false;
    (if you wanted to...)

    Allan
This discussion has been closed.