Pyth, 8 bytes
x"(|)D"e
Exalanation
x"(|)D"e(Q)
(Q) : Implicit evaluated input
e : Last element of input
"(|)D" : The string "(|)D"
x : First occurrence of the last element of input in "(|)D"
Pyth, 8 bytes
x"(|)D"e
Exalanation
x"(|)D"e(Q)
(Q) : Implicit evaluated input
e : Last element of input
"(|)D" : The string "(|)D"
x : First occurrence of the last element of input in "(|)D"
Pyth, 8 bytes
x"(|)D"e
Exalanation
x"(|)D"e
: Implicit evaluated input
e : Last element of input
"(|)D" : The string "(|)D"
x : First occurrence of the last element of input in "(|)D"
Pyth, 8 bytes
x"(|)D"e
Exalanation
x"(|)D"e(Q)
(Q) : Implicit evaluated input
e : Last element of input
"(|)D" : The string "(|)D"
x : First occurrence of the last element of input in "(|)D"