You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/error-kinds.mdx
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1504,6 +1504,19 @@ if "abc":
1504
1504
...
1505
1505
```
1506
1506
1507
+
## regex
1508
+
1509
+
This error is raised when Pyrefly can statically detect an invalid regular expression pattern or an invalid literal group access on a regular expression match.
1510
+
1511
+
```python
1512
+
import re
1513
+
1514
+
re.compile("(") # missing ), unterminated subpattern at position 0 [regex]
1515
+
1516
+
if m := re.search("(?P<name>.*)", "example"):
1517
+
m.group("missing") # No such group: 'missing' [regex]
0 commit comments