TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jans
NA
1
0
C# equivalent for appendReplacement in java
Feb 12 2007 4:53 AM
Is there any C# equivalent code for the appendReplacement functionality in JAVA. I guess no! but could anyone help me to get it?
Java Code:
Pattern p = Pattern.compile("cat");
Matcher m = p.matcher("one cat two cats in the yard");
StringBuffer sb = new StringBuffer();
while (m.find()) {
m.appendReplacement(sb, "dog");
}
m.appendTail(sb);
System.out.println(sb.toString());
O/P:
one dog two dogs in the yard
Reply
Answers (
1
)
Needed help urgently for developing a simple email application(Intranet based) using asp.et and vb.net/c#
Unicode or UTF-8 chars