473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

parsing HTML text

hi guys!
here i'm again with an interesting problem.
the problem is,

i've a HTML text like this :
01.%20Bhulado%20%5bWww.Alldesimp3.Info%5d.rm

and i want to parse it like IE or any web browser dose into this:
01. Bhulado [Www.Alldesimp3.Info].rm

but i dont know how can i do this. i tried to use Regular Expression
but as all knows, HTML has very long range of this "%20" kinds (i dont
know what they r called).

can anyone tell me, is there any class or namespace in .net 2.0,
available for parsing such HTML?
i dont know how this web browsers are able to understand this html and
converts the text back into the correct format.

the tools i'm using is :
C#.net 2.0

i would appriciate any help.

Lucky

Jan 9 '07 #1
4 2372
Lucky wrote:
i've a HTML text like this :
01.%20Bhulado%20%5bWww.Alldesimp3.Info%5d.rm

and i want to parse it like IE or any web browser dose into this:
01. Bhulado [Www.Alldesimp3.Info].rm

but i dont know how can i do this. i tried to use Regular Expression
but as all knows, HTML has very long range of this "%20" kinds (i dont
know what they r called).

can anyone tell me, is there any class or namespace in .net 2.0,
available for parsing such HTML?
i dont know how this web browsers are able to understand this html and
converts the text back into the correct format.
I think you're looking for System.Web.HttpServerUtility.UrlDecode

Andrew
Jan 9 '07 #2
Hi Andrew!
the correct namespace and the function is:

System.Web.HttpUtility.UrlDecode()

anyways, thanks for pointing me into the direction.

Lucky

Andrew Morton wrote:
Lucky wrote:
i've a HTML text like this :
01.%20Bhulado%20%5bWww.Alldesimp3.Info%5d.rm

and i want to parse it like IE or any web browser dose into this:
01. Bhulado [Www.Alldesimp3.Info].rm

but i dont know how can i do this. i tried to use Regular Expression
but as all knows, HTML has very long range of this "%20" kinds (i dont
know what they r called).

can anyone tell me, is there any class or namespace in .net 2.0,
available for parsing such HTML?
i dont know how this web browsers are able to understand this html and
converts the text back into the correct format.

I think you're looking for System.Web.HttpServerUtility.UrlDecode

Andrew
Jan 9 '07 #3
Lucky,
the tools i'm using is :
C#.net 2.0
And you want to use the VB language instead of that?

I cannot find any other reason why you should sent this message to the
VB.Net newsgroup.

Cor
Jan 10 '07 #4
dude,
the language doesnt matter here. all i wanted was suggestion from both
c# and VB developer.
and i assume that u know that in .Net the language is not a constraint.

Lucky

Cor Ligthert [MVP] wrote:
Lucky,
the tools i'm using is :
C#.net 2.0
And you want to use the VB language instead of that?

I cannot find any other reason why you should sent this message to the
VB.Net newsgroup.

Cor
Jan 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $...
16
by: Terry | last post by:
Hi, This is a newbie's question. I want to preload 4 images and only when all 4 images has been loaded into browser's cache, I want to start a slideshow() function. If images are not completed...
3
by: Pir8 | last post by:
I have a complex xml file, which contains stories within a magazine. The structure of the xml file is as follows: <?xml version="1.0" encoding="ISO-8859-1" ?> <magazine> <story>...
7
by: Lucas Tam | last post by:
Hi all, Does anyone know of a GOOD example on parsing text with text qualifiers? I am hoping to parse text with variable length delimiters/qualifiers. Also, qualified text could run onto...
9
by: wardy | last post by:
I'm trying to undestand the impact of using content negotiation when rendering my Web pages to various different browsers as I would like to use the XHTML Strict DOCTYPE declaration. Reading the...
9
by: ankitdesai | last post by:
I would like to parse a couple of tables within an individual player's SHTML page. For example, I would like to get the "Actual Pitching Statistics" and the "Translated Pitching Statistics"...
5
by: mailtogops | last post by:
Hi All, I am involved in one project which tends to collect news information published on selected, known web sites inthe format of HTML, RSS, etc and sortlist them and create a bookmark on our...
4
by: Neil.Smith | last post by:
I can't seem to find any references to this, but here goes: In there anyway to parse an html/aspx file within an asp.net application to gather a collection of controls in the file. For instance...
2
by: hzgt9b | last post by:
I've written a simple javascript page that parses an XML file... (Actually I just modified the "Parsing an XML File" sample from http://www.w3schools.com/dom/dom_parser.asp) The page works great...
7
by: Benjamin | last post by:
I'm trying to parse an HTML file. I want to retrieve all of the text inside a certain tag that I find with XPath. The DOM seems to make this available with the innerHTML element, but I haven't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.