Closed zokrezyl closed 1 month ago
in chrome console
import re
RE_SIMPLE = re.compile(r'rgb\(\d+,\d+,\d+\)')
color = 'rgb(249,38,114)'
match = RE_SIMPLE.match(color)
print(match)
works. Is brython using jscript re?
Thanks for the report @zokrezyl
The example fails with the current release (3.12.4) but not with the current development version. Can you check ?
Hi,
Brython is amazing! Discovered a little issue. Wanted to run python rich in brython, but the initialization fails due to re problems.
However on python 3.12 it works. (Don't think would behave differently on < 3.12
Regards Z.