Complete VBScript Reference
The InStrRev function returns the position of the first occurrence of one string within another. The search begins from the end of string, but the position returned counts from the beginning of the string.
The InStrRev function can return the following values:
Tip: Also look at the InStr function
| Parameter | Description |
|---|---|
| string1 | Required. The string to be searched |
| string2 | Required. The string expression to search for |
| start | Optional. Specifies the starting position for each search. The search begins at the last character position by default (-1) |
| compare | Optional. Specifies the string comparison to use.
Default is 0 Can have one of the following values:
|
The output of the code above will be:
Finding the letter "i", using different starting positions:
The output of the code above will be:
Finding the letter "T", with textual, and binary, comparison:
The output of the code above will be:
Complete VBScript Reference
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| XML Editor - Free Trial! |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|