RegexRouteMatcher

final class RegexRouteMatcher(regex: Regex) extends RouteMatcher

A route matcher for regular expressions. Useful for cases that are more complex than are supported by Sinatra- or Rails-style routes.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(requestPath: String): Option[MultiParams]

Evaluates the request path against the regular expression.

Evaluates the request path against the regular expression.

Returns:

If the regex matches the request path, returns a list of all captured groups in a "captures" variable. Otherwise, returns None.

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any

Inherited methods

def apply(route: Route): Route
Inherited from:
RouteMatcher