You use the case statement for the value returned by a search with simpleEscapes, which is of type Maybe. Maybe there are two data constructors: Just and Nothing. The Just data constructor is processed with a single value, the Nothing constructor has nothing.
So, in this case, r is a formal parameter for the Just data constructor: its actual value in the return value from the search.
source
share