diff --git a/README.de.md b/README.de.md index 0ce1bffb..bf488fbb 100644 --- a/README.de.md +++ b/README.de.md @@ -204,7 +204,7 @@ end Routen mit regulären Ausdrücken sind auch möglich: ```ruby -get /\A\/hallo\/([\w]+)\z/ do +get /\/hallo\/([\w]+)/ do "Hallo, #{params['captures'].first}!" end ``` @@ -389,7 +389,7 @@ end Oder unter Verwendung eines negativen look ahead: ```ruby -get %r{^(?!/index$)} do +get %r{(?!/index)} do # ... end ``` diff --git a/README.es.md b/README.es.md index 3270dc44..07bb556d 100644 --- a/README.es.md +++ b/README.es.md @@ -117,7 +117,7 @@ end Rutas con Expresiones Regulares: ```ruby -get /\A\/hola\/([\w]+)\z/ do +get /\/hola\/([\w]+)/ do "Hola, #{params['captures'].first}!" end ``` @@ -282,7 +282,7 @@ end O, usando un lookahead negativo: ```ruby -get %r{^(?!/index$)} do +get %r{(?!/index)} do # ... end ``` diff --git a/README.fr.md b/README.fr.md index c2231534..52aac7a2 100644 --- a/README.fr.md +++ b/README.fr.md @@ -209,7 +209,7 @@ end Une route peut aussi être définie par une expression régulière : ```ruby -get /\A\/bonjour\/([\w]+)\z/ do +get /\/bonjour\/([\w]+)/ do "Bonjour, #{params['captures'].first} !" end ``` @@ -390,7 +390,7 @@ end Ou bien en utilisant cette expression regulière : ```ruby -get %r{^(?!/index$)} do +get %r{(?!/index)} do # ... end ``` diff --git a/README.hu.md b/README.hu.md index c12ad000..27cea972 100644 --- a/README.hu.md +++ b/README.hu.md @@ -88,7 +88,7 @@ Az útvonalmintákban szerepelhetnek joker paraméterek is, melyeket a Reguláris kifejezéseket is felvehetünk az útvonalba: ```ruby - get /\A\/hello\/([\w]+)\z/ do + get /\/hello\/([\w]+)/ do "Helló, #{params['captures'].first}!" end ``` diff --git a/README.ja.md b/README.ja.md index ab1ed5df..43719eb9 100644 --- a/README.ja.md +++ b/README.ja.md @@ -217,7 +217,7 @@ end ルーティングを正規表現にマッチさせることもできます。 ```ruby -get /\A\/hello\/([\w]+)\z/ do +get /\/hello\/([\w]+)/ do "Hello, #{params['captures'].first}!" end ``` @@ -374,7 +374,7 @@ end または、否定先読みを使って: ```ruby -get %r{^(?!/index$)} do +get %r{(?!/index)} do # ... end ``` diff --git a/README.ko.md b/README.ko.md index b95f9d66..9e7debec 100644 --- a/README.ko.md +++ b/README.ko.md @@ -207,7 +207,7 @@ end 라우터는 정규표현식으로 매치할 수 있습니다. ```ruby -get /\A\/hello\/([\w]+)\z/ do +get /\/hello\/([\w]+)/ do "Hello, #{params['captures'].first}!" end ``` @@ -374,7 +374,7 @@ end 또는 거꾸로 탐색(negative look ahead)할 수도 있습니다. ```ruby -get %r{^(?!/index$)} do +get %r{(?!/index)} do # ... end ``` diff --git a/README.md b/README.md index 07c6c92f..6bd61c95 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ end Route matching with Regular Expressions: ```ruby -get /\A\/hello\/([\w]+)\z/ do +get /\/hello\/([\w]+)/ do "Hello, #{params['captures'].first}!" end ``` @@ -394,7 +394,7 @@ end Or, using negative look ahead: ```ruby -get %r{^(?!/index$)} do +get %r{(?!/index)} do # ... end ``` diff --git a/README.pt-br.md b/README.pt-br.md index dd65f8e0..d50ecc88 100644 --- a/README.pt-br.md +++ b/README.pt-br.md @@ -180,7 +180,7 @@ end Rotas podem casar com expressões regulares: ```ruby -get /\A\/ola\/([\w]+)\z/ do +get /\/ola\/([\w]+)/ do "Olá, #{params['captures'].first}!" end ``` @@ -362,7 +362,7 @@ end Ou, usando algo mais denso à frente: ```ruby -get %r{^(?!/index$)} do +get %r{(?!/index)} do # ... end ``` diff --git a/README.pt-pt.md b/README.pt-pt.md index e1b7b007..e39e0f27 100644 --- a/README.pt-pt.md +++ b/README.pt-pt.md @@ -88,7 +88,7 @@ end Rotas correspondem-se com expressões regulares: ```ruby -get /\A\/ola\/([\w]+)\z/ do +get /\/ola\/([\w]+)/ do "Olá, #{params['captures'].first}!" end ``` diff --git a/README.ru.md b/README.ru.md index 77850bfb..453dadae 100644 --- a/README.ru.md +++ b/README.ru.md @@ -208,7 +208,7 @@ end Регулярные выражения в качестве шаблонов маршрутов: ```ruby -get /\A\/hello\/([\w]+)\z/ do +get /\/hello\/([\w]+)/ do "Hello, #{params['captures'].first}!" end ``` @@ -377,7 +377,7 @@ end Или с использованием негативного просмотра вперед: ```ruby -get %r{^(?!/index$)} do +get %r{(?!/index)} do # ... end ``` diff --git a/README.zh.md b/README.zh.md index 6db169bb..dbdb8614 100644 --- a/README.zh.md +++ b/README.zh.md @@ -205,7 +205,7 @@ end 通过正则表达式匹配路由: ```ruby -get /\A\/hello\/([\w]+)\z/ do +get /\/hello\/([\w]+)/ do "Hello, #{params['captures'].first}!" end ``` @@ -372,7 +372,7 @@ end 或者,使用消极向前查找: ```ruby -get %r{^(?!/index$)} do +get %r{(?!/index)} do # ... end ```