add english deefault regex and fix in text

This commit is contained in:
AntonObersteiner 2024-06-05 12:19:38 +02:00
parent efd2146962
commit 1f52d02dda
2 changed files with 3 additions and 3 deletions

View file

@ -16659,7 +16659,7 @@ var regexr = (function () {
tt.showOn("error", "<span class='error'>" + label + ":</span> " + str, this.errorEl); tt.showOn("error", "<span class='error'>" + label + ":</span> " + str, this.errorEl);
} }
} }
Expression.DEFAULT_EXPRESSION = "/(Erst|Zweit)versuch/g"; Expression.DEFAULT_EXPRESSION = "/(first|second) attempt/g";
Expression.FLAGS = "gimsuxyU"; // for flag order Expression.FLAGS = "gimsuxyU"; // for flag order
Expression.FLAG_LABELS = { Expression.FLAG_LABELS = {
"g": "<em>g</em>lobal", "g": "<em>g</em>lobal",

View file

@ -81,8 +81,8 @@ Hi,
there is no database for this exam, so I added our digitized notes below . there is no database for this exam, so I added our digitized notes below .
Maybe you can filter it with regular expressions? Maybe you can filter it with regular expressions?
They are like normal text-search but more flexible: They are like normal text-search but more flexible:
E.g.: (Erst|Zweit)versuch would select both words: E.g.: /(first|second) attempt/ would select both:
'Erstversuch' (first attempt) and 'Zweitversuch' (second attempt). 'first attempt' and 'second attempt'.
.+ will accept any text, you can add it at the start of the expression .+ will accept any text, you can add it at the start of the expression
(top of page) to see the whole line in the menu 'List' (bottom right). (top of page) to see the whole line in the menu 'List' (bottom right).
You should find approximately 5 students. You should find approximately 5 students.