MicroWebSrv2
MicroWebSrv2 copied to clipboard
Makes the route resolver pattern compatible with MicroPython's re
MicroPython does not support named classes within [...]
(i.e. no [\\w]
or [\\s]
)
Fixes #38
Was just going to PR for the same problem...
However I don't understand [\w.]
. Since .
matches anything, what's is \w
doing? Doubtless something as I've no great experience with re.
However I don't understand
[\w.]
. Since.
matches anything, what's is\w
doing? Doubtless something as I've no great experience with re.
When .
is inside a character class [...]
, it not longer matches anything and only matches the literal .
character
works fine, thank you
However I don't understand
[\w.]
. Since.
matches anything, what's is\w
doing? Doubtless something as I've no great experience with re.When
.
is inside a character class[...]
, it not longer matches anything and only matches the literal.
character
Duh! Thank you. I was being daft.