Using OR in Search

Using OR in Search

J2000_caJ2000_ca Posts: 1Questions: 0Answers: 0
edited August 2011 in General
Is there a way to select rows using search that have either "A" or "B" in them?

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    edited August 2011
    use regular expression filtering

    http://www.datatables.net/examples/api/regex.html

    on the example page search on "netscape|firefox" and turn on reg ex (turn smart filter off). you will find netscape and firefox (i.e. search for netscape OR firefox)

    (this is for client side. if you're using server processing, some databases like MySQL also support a REGEXP operator)
This discussion has been closed.