In my React app, I have rendered pdf using the library on left side of the page. On the right side, i am showing extracted data from the pdf in tabular format. Whenever a user clicks on the displayed row, I use a Regex to match the content from the pdf. But it highlights all the occurences. I want it to highlight just the one that has been clicked. Is there a way I can achieve this programatically?