fnFilter with regex

fnFilter with regex

abbottmwabbottmw Posts: 29Questions: 0Answers: 0
edited June 2010 in General
Im trying to use the fnFilter() function with a regex on a column. Basically im trying to say to filter the data that is NOT equal to 'foo' , but it is getting rid of the empty cells, so i need to somehow add in there where its not foo and not empty..

fnFilter("[^foo]",4,false);

I cant seem to make it also add in the space or empty cells
i tried ([^foo])([^\s])

Any help with the regex is greatly appreciated.

Thanks!

Replies

  • abbottmwabbottmw Posts: 29Questions: 0Answers: 0
    okay looks like i found a way to do it (I think)

    ^((?!foo).)*$
  • mateinonemateinone Posts: 2Questions: 0Answers: 0
    ah I just posted on this, I tried a search and found nothing, tried another and found two posts, this being one.
    Where abouts is this the foo parameter?
This discussion has been closed.