<%
Dwwwstr= "<div>dwww.cn</div><div>www.dwww.cn</div> Design Home"
Dwwwstr= InStrRev (dwwwstr, "</div>")
Response.Write Dwwwstr
%>
InStrRev
Describe
Returns the position from the end of a string that appears in another string.
Grammar
InStrRev (string1, string2[, start[, compare])
The syntax for the InStrRev function has the following parameters:
Parameter description
String1 must be selected. The string expression that accepts the search.
string2 must be selected. The string expression being searched for.
Start optional. A numeric expression that sets the starting position for each search. If omitted, the default value is-1, which indicates that the search begins at the last character position. If start contains Null, an error occurs.
Compare optional. Indicates the numeric value of the comparison type to use when calculating the substring. If omitted, a binary comparison is performed. For numeric values, see the "Settings" section.
Set up
The Compare parameter can have the following values:
Constant Value Description
Vbbinarycompare 0 performs binary comparisons.
vbTextCompare 1 performs a text comparison.
Vbdatabasecompare 2 performs a comparison based on the information contained in the database (performing comparisons in this database).
return value
InStrRev returns the following values:
If InStrRev returns
String1 is zero length 0
String1 is null null
String2 is zero-length start
STRING2 is null null
String2 didn't find 0.
Find the location of the matching string in the string1 string2
Start > Len (string2) 0
Description
Note that the syntax of the InStrRev function differs from the syntax of the INSTR function.