prexp 0.0.1 copy "prexp: ^0.0.1" to clipboard
prexp: ^0.0.1 copied to clipboard

discontinuedreplaced by: routingkit

Convert the path string to a regular expression, such as `/users/:name` and the like.

example/prexp_example.dart

import 'package:prexp/prexp.dart';

void main() {
  const route = '/user/:name';

  // Create a match function from a route.
  final fn = match(route);

  // Print the result.
  //
  // `Match(path: /user/John, params: {name: John})`
  print(fn('/user/John'));
}
1
likes
0
pub points
4%
popularity

Publisher

verified publisherodroe.com

Convert the path string to a regular expression, such as `/users/:name` and the like.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on prexp