ODBiC Discussion Board


RE: replacing whitespace with another character, John Kincaid, 09-12-2006

Use the $repl(...) function

by Roger Harris, September 12, 2006 12:33

Example, to replace all spaces with underscores:

<% SET var = $repl($var$, " "="_") %>

The $repl( ) can be used to replace any character or character string with another, and if you have more than one replacement to be made, you can specify a comma-separated list of "string"="new string" values.



Replies:


Post Your Reply:

Name   
E-mail  optional
Topic  
Message:

HTTP Link: 
Link text: 

          


Copyright ©1997-2003, Roger Harris. All rights reserved.