removing replacing blank lines in ASP.NET (VB)

J

jason

Hello.

I'm sure this is a common problem.

I have output I'm displaying on an html form that has blank lines I'd
like to remove. When I clip and paste the output onto an editor with
hex display I see CR/LF codes with blank entries in between as such:

0D0A2020202020202020D0A

I'm trying this regex code, but it does not seem to be working:

dim orx as regex
orx = new regex("$\s*$")
contents=(orx.replace(contents,"$"))

Any help or information is greatly appreciciated.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top