For a guide to the choosing ASP or PHP, click here
Home >> Variables >> Replace Chunks of a String with Another String This code sample shows how to replace a part, or parts, of a string with another string
<% ' declare our long string dim strLongOne ' give our string a value strLongOne = "Ted is a good soccer player" ' in strLongOne, replace all occurrences of ' good with horrible strLongOne = Replace(strLongOne, "good", "horrible") ' now strLongOne has the value: ' Ted is a horrible soccer player %> What is ASP?
What is PHP?