From 6a1fb03fc4d06e424b19767e63e5aaf113a7de35 Mon Sep 17 00:00:00 2001 From: frippe75 Date: Sun, 6 Oct 2019 10:08:59 +0200 Subject: [PATCH] Fixes #614 with incorrect regex in the example sketch (#615) --- examples/regex_patterns/regex_patterns.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/regex_patterns/regex_patterns.ino b/examples/regex_patterns/regex_patterns.ino index ad66dae..4ec9c85 100644 --- a/examples/regex_patterns/regex_patterns.ino +++ b/examples/regex_patterns/regex_patterns.ino @@ -50,7 +50,7 @@ void setup() { }); // Send a GET request to /sensor//action/ - server.on("^\\/sensor\\/([0-9]+)\\/action\//([a-zA-Z0-9]+)$", HTTP_GET, [] (AsyncWebServerRequest *request) { + server.on("^\\/sensor\\/([0-9]+)\\/action\\/([a-zA-Z0-9]+)$", HTTP_GET, [] (AsyncWebServerRequest *request) { String sensorNumber = request->pathArg(0); String action = request->pathArg(1); request->send(200, "text/plain", "Hello, sensor: " + sensorNumber + ", with action: " + action);