≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Negative filtering
Negative filtering
flarpy
Posts: 47
Questions: 0
Answers: 0
February 2013
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
allan
Posts: 65,845
Questions: 1
Answers: 10,956
Site admin
February 2013
[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
flarpy
Posts: 47
Questions: 0
Answers: 0
February 2013
thanks
This discussion has been closed.
Replies
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