PathSegmentRegexRouteSelector

A route selector that matches a segment of the path against a specified regular expression regex. This selector allows flexible matching of URI path segments by using regex patterns.

Report a problem

Constructors

Link copied to clipboard
constructor(regex: Regex)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

regular expression for matching path segments

Functions

Link copied to clipboard
open suspend override fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation

Evaluates this selector against context and a path segment at segmentIndex.

Link copied to clipboard
open override fun toString(): String