By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,857 Members | 711 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,857 IT Pros & Developers. It's quick & easy.

Regex to high lite a particular word

P: 1
Hey i need to high lite a particular word in text area using regular expression. How to do this??
Apr 2 '14 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
search for the particular word (indexOf() should do it if you know the word) and then wrap in in an appropriate <span> tag to highlight it.
Apr 2 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.