We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please help.
In
highlight: 'title', className: 'red'
I tried adding a /\btitle\b/g but it's not working and I'm not sure how to customize the library.
How can I add a word boundary for title so that it won't highlight "subtitle" or any other word with "title" in it?
The text was updated successfully, but these errors were encountered:
You could just put a \s around the word title
\s
Sorry, something went wrong.
Please tell me how? I tried \stitle\s but it's not working?
\stitle\s
nvm that was wrong You could use lookaround: (?<=\b)title(?=\b)
(?<=\b)title(?=\b)
Sorry this is still not working for me. Is this applicable to what I'm using which is inside quotation marks?
highlight: '(?<=\b)title(?=\b)', className: 'red'
So something like that?
But thank you for trying to help me, really appreciate it!
No branches or pull requests
Please help.
In
I tried adding a /\btitle\b/g but it's not working and I'm not sure how to customize the library.
How can I add a word boundary for title so that it won't highlight "subtitle" or any other word with "title" in it?
The text was updated successfully, but these errors were encountered: