ROPE Language Reference - "expect_to"

The expect_to action scans the packet being inspect for the specified string. The scan starts at the current $offset and continues to the end of the packet.

If the string is found before hitting the end of the packet, then the characters traversed during the scan (including the matched string) are returned. If the string is not found, the script is terminated with a no status.

For example:

"</a>" expect_to

scans the buffer for the first occurance of the string "</a>".

Note - the expecti_to does the same thing but ignores the case of the characters being scanned.

See Also