[thelist] Anal String Replace (ASP)

Tanner Burson tanner at younet.okstate.edu
Thu Oct 14 14:36:38 CDT 2004


*This message was transferred with a trial version of CommuniGate(tm) Pro*
Anal as in strict,

I have a file name:
filename = "Abbrv. State Names.htm"

What I'd like to do is:
filename = replace(filename,".","")

However this yields:
Abbrv State Nameshtm... not good
-----------------------------------

>From the above we'll assume all the strings you're dealing with are
filenames.  Given this, search from the end of the string forward for the
first period, in a file name this should be the extension.  Remove this
portion of the string.  Then do your replace, and append it back to the
string before you return.  Hopefully this is some help.

Tanner



More information about the thelist mailing list