Want to build the ChatGPT based Apps? Start here
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Aisha Srivastava
1.9k
230
25.6k
Regex in C#
May 27 2015 7:05 AM
Want to replace the size attribute with corresponding value.
i.e
we have <FONT style="BACKGROUND-COLOR: #ffffff" size=4 face="Urdu Typesetting"> this html or strin
In this we have to replace size=12pt and put it back in the string at same place<FONT style="BACKGROUND-COLOR: #ffffff" size=12pt face="Urdu Typesetting">.
We have to cope up pattern with all the condition style and face attribute may be absent and can be any one of them and arrangement may be diffrent
we have to make pattern which full fill all the pattern.
i.e <FONT size=4> ----> <FONT size=12pt>
i.e<FONT style="BACKGROUND-COLOR: #ffffff" size=4> ---><FONT style="BACKGROUND-COLOR: #ffffff" size=12pt>
i.e<FONT style="BACKGROUND-COLOR: #ffffff" face="Urdu Typesetting"size=4> -----><FONT style="BACKGROUND-COLOR: #ffffff" face="Urdu Typesetting"size=12pt>
so on.
//1:6pt
// 2:8pt
// 3:10pt
// 4:12pt
// 5:14pt
// 6:16pt
// 7:18pt
Reply
Answers (
7
)
tabcontroll
How to convert the String To Inteeger in dropdown value