Classic ASP commonly uses VBScript string functions to combine text, measure length, change case, compare/search values, extract substrings, replace text and clean user input.
Use this page as the parent reference for the string tutorials below. For visitor-controlled text, string manipulation is not a substitute for validation, parameterized database commands, or output encoding.
| Topic | Use |
|---|---|
| Joining strings | Combine values with & and understand the older + form. |
| Len() and LenB() | Count characters and work with byte-oriented length when required. |
| Trim(), LTrim(), RTrim() | Remove leading or trailing spaces. |
| UCase() and LCase() | Convert letter case. |
| StrReverse() | Reverse character order. |
| StrComp() | Compare strings using binary or text comparison. |
| Left(), Right(), Mid() | Extract parts of a string. |
| InStr() | Find the position of one string inside another. |
| Replace() | Search and replace substrings. |
| Text line breaks in HTML | Convert vbCrLf to an HTML line break for trusted text. |
| Split() | Break a delimited string into an array. |
| Join() | Combine array elements into one string. |
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.