This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes searching and replacing words in a paragraph Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "searching and replacing words in a paragraph" Watch "searching and replacing words in a paragraph" New topic
Author

searching and replacing words in a paragraph

Christian Nash
Ranch Hand

Joined: Jan 17, 2006
Posts: 107
Hi,
Is it possible to highlight certain words in a paragraph irrespective of the occurrence of the words using the same template. for eg: I have a line of text like 'My name is Christian. Christian Roger Nash'. I would like to make both the words 'Christian' and 'Nash' bold. How can I do this?


- Christian
 
 
subject: searching and replacing words in a paragraph
 
It's not a secret anymore!