# Khan/khan-exercises

Correctly (i hope) accept all answer permutations and add a TODO to d…

```…o it better

fix #43280; fix #43228; fix #42415

Test plan: Answer -(x-1)(5x+2) for http://localhost:8000/exercises/factoring_polynomials_by_grouping_1.html?seed=177&problem=0&debug

Auditors: cbhl, alpert```
beneater committed Mar 14, 2013
1 parent cb30e1f commit 064be4dcd97837c711d32923e824139bd9e342c2
Showing with 9 additions and 8 deletions.
1. +9 −8 exercises/factoring_polynomials_by_grouping_1.html
 @@ -32,6 +32,7 @@ C

+
^\s*AX_PLUS_E\s*X_PLUS_F\s*\$
^\s*AX_PLUS_E\s*F_PLUS_X\s*\$
^\s*E_PLUS_AX\s*X_PLUS_F\s*\$
@@ -56,14 +57,14 @@
^\s*[-\u2212]\s*NEG_F_MINUS_X\s*AX_PLUS_E\s*\$
^\s*[-\u2212]\s*NEG_X_MINUS_F\s*E_PLUS_AX\s*\$
^\s*[-\u2212]\s*NEG_F_MINUS_X\s*E_PLUS_AX\s*\$
-
^\s*[-\u2212]\s*NEG_AX_MINUS_E\s*X_PLUS_F\s*\$
-
^\s*[-\u2212]\s*NEG_AX_MINUS_E\s*F_PLUS_X\s*\$
-
^\s*[-\u2212]\s*NEG_E_MINUS_AX\s*X_PLUS_F\s*\$
-
^\s*[-\u2212]\s*NEG_E_MINUS_AX\s*F_PLUS_X\s*\$
-
^\s*[-\u2212]\s*NEG_X_MINUS_F\s*AX_PLUS_E\s*\$
-
^\s*[-\u2212]\s*NEG_F_MINUS_X\s*AX_PLUS_E\s*\$
-
^\s*[-\u2212]\s*NEG_X_MINUS_F\s*E_PLUS_AX\s*\$
-
^\s*[-\u2212]\s*NEG_F_MINUS_X\s*E_PLUS_AX\s*\$
+
^\s*[-\u2212]\s*X_PLUS_F\s*NEG_AX_MINUS_E\s*\$
+
^\s*[-\u2212]\s*F_PLUS_X\s*NEG_AX_MINUS_E\s*\$
+
^\s*[-\u2212]\s*X_PLUS_F\s*NEG_E_MINUS_AX\s*\$
+
^\s*[-\u2212]\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