Regular expression for stripping tab and new line characters in Render

P

paul.hester

Hi all,

Does anyone have a good regular expression to strip tab and new line
characters in the Render method?

Thanks,

Paul
 
H

Hans Kesting

Hi all,
Does anyone have a good regular expression to strip tab and new line
characters in the Render method?

Thanks,

Paul

Why not use Replace() ?
to remove:
s = s.Replace("\t", "").Replace("\r", "").Replace("\n","");

to replace with spaces:
s = s.Replace('\t', ' ').Replace('\r', ' ').Replace('\n',' ');


Hans Kesting
 

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,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top