# ASP character replace

**URL:** <https://forum.kirupa.com/t/asp-character-replace/204832>\
**Category:** programming\
**Created:** [October 23, 2006, 9:50pm UTC](https://forum.kirupa.com/t/asp-character-replace/204832 "2006-10-23T21:50:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigepmest37](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sigepmest37](https://forum.kirupa.com/u/sigepmest37)\
**Post date:** [October 23, 2006, 9:50pm UTC](https://forum.kirupa.com/t/asp-character-replace/204832/1 "2006-10-23T21:50:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![opel](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/opel/32/199_2.png) [@opel](https://forum.kirupa.com/u/opel)\
**Post date:** [October 25, 2006, 11:23am UTC](https://forum.kirupa.com/t/asp-character-replace/204832/2 "2006-10-25T11:23:52Z")

</div>

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)%\>
