Skip to content

Unable to use regex expression #10299

Answered by scruss
TheFern2 asked this question in Unix & Windows
Dec 22, 2022 · 3 comments · 9 replies
Discussion options

You must be logged in to vote

MicroPython's [u]re module is very small. The re-pcre module is old and is no longer in micropython-lib. MicroPython is a subset of an older Python than 3.10.

What are you looking for? \[.+\] will match square bracket groups (or \[[^\]]+\] if you're cautious). I don't think we have PCRE's pipe matching at all.

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
7 replies
@git-n-pissed
Comment options

@TheFern2
Comment options

@mattytrentini
Comment options

mattytrentini Dec 23, 2022
Collaborator Sponsor

@mattytrentini
Comment options

mattytrentini Dec 23, 2022
Collaborator Sponsor

@TheFern2
Comment options

Answer selected by TheFern2
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jimmo
Comment options

@TheFern2
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants