toRegExp method

RegExp toRegExp()

Returns as a regular expression that matches this route.

Implementation

RegExp toRegExp() => RegExp(
    '/?${path.replaceAll(_findParameters, r"((?:[\w'\.\-~!\$&\(\)\*\+,;=:@]|%[0-9a-fA-F]{2})+)")}');