Shell Wildcard Matching in purem Python (ohne re)?

27 Nov
2015
27 Nov
'15
5:02 a.m.
Hi allerseits,
kennt jemand eine Implementierung für Shell Wildcard Matching in purem Python, also auch ohne das re-Modul zu benutzen (wie es fnmatch tut)?
Einsatzzweck: OSC Address Pattern Matching [1] unter Micropython [2], also potentiell auf Microprozessoren und ohne Zugriff auf irgendwelche C-Libraries.
Unterstützung von '{a,b}' Pattern wäre schön, lässt sich aber bestimmt ggf. leicht nachrüsten.
Chris
[1] OSC Address Spaces and OSC Addresses, http://opensoundcontrol.org/spec-1_0 [2] http://docs.micropython.org/en/latest/
2682
Age (days ago)
2682
Last active (days ago)
0 comments
1 participants
participants (1)
-
Christopher Arndt