PDA

View Full Version : ASP character replace



sigepmest37
October 23rd, 2006, 05:50 PM
Note: i'm a PHP kid working on an ASP sight...no bueno.

That being said:

I have a string: this,that,theother,

I want to remove just the last comma.

Any suggestions?

opel
October 25th, 2006, 07:23 AM
I have to use ASP at work, hate it, and currently teaching myself php, love it.

here is the replace function we use around a DW variable hope it helps, should strip out the comma and add a space

<%=replace(rsContent.Fields.Item("Content").Value,",","&nbsp;",1,1)%>