Ask a Question related to ASP, Design and Development.
-
J. Muenchbourg #1
Using Replace function to remove two different characters
I'm using replace function to strip 0s from a particular string:
<%=replace(rs1("racelength"),"0","''"%>
but I need to also strip empty spaces from the string in question. This
doesn't work :
<%=replace(rs1("racelength"),"0"" ","''""''"%>
can't figure out how to nest the "replace" routine here
thanx for help
Muench
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
J. Muenchbourg Guest
-
Is there a way to replace characters in a string/array
I am trying to find a function similar to php's str_replace is there something that will allow me to replace a certain character in a variable? ... -
find replace a range of characters
I need to find and replace a range of characters that are contained in brackets like below: It seems the brackets are throwing me off. I just... -
remove ^B characters
Hi there, I've got a problem with ^B characters stored in some mysql tables. In the backup of my DB I read something like that with vi: INSERT... -
Replace characters in a Field when bindig data
I have a drop down field on a form. When binding data to the DataValueField property of the drop down, I need to replace "&" with "%". In code... -
Replace * with return characters?
Is there a way to do this or not? I want to import a file with return characters but it seems impossible. even with the new find/replace... -
Andrew Durstewitz #2
Re: Using Replace function to remove two different characters
Response.Write Replace(Replace(rs1("racelength"),"0",""))," ","")
hth,
Andrew
* * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
Developer Resources for High End Developers.
Andrew Durstewitz Guest
-
MN #3
Re: Using Replace function to remove two different characters
Andrew Durstewitz <adurstew@devbuilder.org> wrote in message news:<3f0c5191$0$204$75868355@news.frii.net>...
one too many )'s :)> Response.Write Replace(Replace(rs1("racelength"),"0",""))," ","")
>
> hth,
> Andrew
>
> * * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
> Developer Resources for High End Developers.
MN Guest
-
Dhananjay Modak #4
Re: Using Replace function to remove two different characters
Or use a regular expression
"MN" <imthedaddynah@hotmail.com> wrote in message
news:adb8f7dd.0307110644.168f9978@posting.google.c om...news:<3f0c5191$0$204$75868355@news.frii.net>...> Andrew Durstewitz <adurstew@devbuilder.org> wrote in message>> > Response.Write Replace(Replace(rs1("racelength"),"0",""))," ","")
> >
> > hth,
> > Andrew
> >
> > * * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
> > Developer Resources for High End Developers.
> one too many )'s :)
Dhananjay Modak Guest
-
Andrew Durstewitz #5
Re: Using Replace function to remove two different characters
Sorry, must have fat finger the extra ")".
:oP
-Andrew
* * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
Developer Resources for High End Developers.
Andrew Durstewitz Guest



Reply With Quote

