Skip to content
  • Tim Hunt's avatar
    5dbfbc82
    MDL-43000 shortanswer qtype: handle patterns with many *s · 5dbfbc82
    Tim Hunt authored
    Teachers were typing patterns like
    ********************************<em>****************************</em>
    which translates into a pattern like .*.*.*.*, which is very inefficient
    to try to match, althought it is equivalent ot a single .*. At a certain
    point preg was just giving up.
    
    Since people actually do this, we should simplify the regex by treating
    runs of * like a single *.
    5dbfbc82
    MDL-43000 shortanswer qtype: handle patterns with many *s
    Tim Hunt authored
    Teachers were typing patterns like
    ********************************<em>****************************</em>
    which translates into a pattern like .*.*.*.*, which is very inefficient
    to try to match, althought it is equivalent ot a single .*. At a certain
    point preg was just giving up.
    
    Since people actually do this, we should simplify the regex by treating
    runs of * like a single *.
Loading