diff --git a/src/guiguts/data/scannos/regex.json b/src/guiguts/data/scannos/regex.json index 23741a9f..473f4636 100644 --- a/src/guiguts/data/scannos/regex.json +++ b/src/guiguts/data/scannos/regex.json @@ -86,13 +86,13 @@ "hint": "Find a word containing at least 5 consonants in a row" }, { -"match": "(\\p{Letter}*\\.)(?=\"?\\n *\"?\\p{Lower}+)", -"replacement": ",\\1", +"match": "(\\p{Letter}*)\\.(?=\"?\\n *\"?(?![cfprx]/)\\p{Lower}+)", +"replacement": "\\1,", "hint": "Find a period with the following line starting with a lower case character and change the period to a comma" }, { -"match": "(? Optional[int]: end = find_matching_paren(pattern, i) if end == len(pattern) - 1: pattern = pattern[:i] + "$" - break + break else: pattern = re.sub(r"\(\?