Searches forward or backward for a regular expression in the current source file.
/regexp ?regexp
regexp may be any regular expression, as described in the man page regexp(5).
Use the / command to search forward in the current source file for the regular expression you specify. The / command searches from line n+1 forward, wrapping after it passes the end of the file. If the expression is found, the source pointer moves to the line that contains the expression, and the line is echoed in the history region of the command window.
The ? command works in the same way, except that it searches backward from line n - 1 in the source file, wrapping after it passes the beginning of the file.
Using / or ? updates the current line, affecting subsequent executions of the list command. The list command resets the starting line for / and ?. For further information, see "list".
/ or ? with no argument searches for the next (or previous) occurrence of the last-used regular expression. Both / and ? wrap around if no match is found.
If the regular expression is not found, Prism displays the message
No match.
in the history region.
Because the scope pointer may be modified by this command, subsequent expression evaluation uses the resulting scope pointer for symbol resolution.