Search string with Parenthesis and match exact word

Search string with Parenthesis and match exact word

WincciWincci Posts: 1Questions: 1Answers: 0
edited September 2019 in Free community support

Hi All,

Does anyone know how can I search string with Parenthesis in it and I will need to get the exact match for example if I search for Location A, only results that match exactly will be shown, results containing 'Location' should not be shown.

Thanks.

Here is my current solution: column.search("^(" + val + ")$", true, false).draw();

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @Wincci ,

    That looks OK. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.