I am currently making a table with the datatables plugin, I have made a filter using a combo box to get the results that match certain criteria. What I am having trouble with is to remove certain rows containing a text. For example:
In my column I will have this text in the row:
Dividend (Full (100%) Scrip Div available)
<br>
Dividend
<br>
Code Change
<br>
Dividend (Full (100%) Scrip Div available)
<br>
Consolidation
<br>
Dividend
<br>
Dividend
I want to remove all those that only have Dividend as a full word, the others should be kept.
Currently I am doing it like this:
titleColumn.search('^(?:(?!Dividend).)*$', true, false).draw();
What it does right now is to remove all the rows that contains the word Dividend, but I want to remove only the ones that have the full word and nothing else.
Thank you for your time.