Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
rtTextArea.Rtf = rtTextArea.Rtf.Replace(oldtext, newtext);

but the problem is it replaces all occurence of the words instead of the required word e.g origianl word :- hello my name is serak and am in israel replace() -- is with are the whole word chages to "are serak and am in arereal"

is there anyway i can include a condition or something to match the whole word? my working environment C#.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900