Flintstone wrote:
> I wish it was that easy. A regex was my first thought but it only
> works for my simple example.
> 
> You are correct, I should have provided a more detailed example.
> 
> Basically, the method should remove all extraneous HTML from a string.
> The resulting HTML string is to be displayed in a div, so trailing
> newlines, br tags, whitespace etc. need to be stripped. If the
> complete string is inside a p tag then that p tag should be removed.
> This extra stuff is added by pretty much any HTML edit control we can
> get our hands on, free or commercial.

Have you tried a program called Expresso? It's a regex development tool. 
You can get it from http://www.ultrapico.com/

-- 
Regards,
Mike Fry
Johannesburg.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment

You may subscribe to group Feeds using a RSS Feed Reader to stay upto date 
using following url  

<a href="http://feeds.feedburner.com/DotNetDevelopment";> 
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---

Reply via email to