Negative filtering

Negative filtering

flarpyflarpy Posts: 47Questions: 0Answers: 0
edited February 2013 in General
Hi

Is there a "simple" way to filter a column using a regex where contents does NOT match regex eg,
fnFilter('!closed', 1, true);

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    [code]
    fnFilter( '^((?!closed).*)$', 1, true, false );
    [/code]

    Based on the suggestion here: http://stackoverflow.com/questions/406230/regular-expression-to-match-string-not-containing-a-word

    Allan
  • flarpyflarpy Posts: 47Questions: 0Answers: 0
    thanks
This discussion has been closed.