Highlighter in table, how to make it case insensitive? #2840
Answered
by
willmcgugan
Schouwenburg
asked this question in
Q&A
-
In my use case, I want to search for records in a database matching a search string. The output is presented as a rich table showing the matching records, and I want to highlight the text where it matches the search string. This all works, except that it now only highlights case sensitive. In my class for the RegexHighlighter I have the following regex definition.
Is there a way to highlight in a case-insensitive manner? |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Mar 1, 2023
Replies: 1 comment 1 reply
-
Try prefixing with “(?i)” |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Schouwenburg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try prefixing with “(?i)”