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
crausch
NA
53
0
Regular Expression question
Dec 30 2004 11:43 AM
When using the Regex.Replace() method how can I change the character case? For example, if I have some text that is all uppercase but I want to convert any XML entities such & to & string someText = "THIS & THAT."; // I want to change to THIS & THAT. What is the easiest way using an expression like: someText = Regex.Replace(someText, @"(?
&\w+?;)", ${ent}); PERL scripts use a \L to lowercase the replacement text. I cannot seem to find something similar in the .NET regular expressions.
Reply
Answers (
1
)
a simple SQL
Plagiarism detection ~