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
Bhavesh Ghul
821
1k
54.1k
How to create regex in allow anything content using C# ?
Jul 3 2020 9:28 AM
string
underlineCss =
"'"
+
"text-decoration: underline;"
+
"'"
;
var underlineSpan = @
"<span style="
+ underlineCss.Replace(
"'"
,
"\""
) +
">
(.*?)
</span>"
;
var underlineRegex =
new
Regex(underlineSpan, RegexOptions.Compiled);
content = underlineRegex.Replace(content,
"<u>$1</u>"
);
Regex :
(.*?)
this regex not allow special character and space. so how any content allow in a-z A-z 0-9 special character and space and any other content allow.
Reply
Answers (
1
)
Ignore properties in data model while keeping them in EF CoreMigration
Reset Link on mail .net core.