35 public function match(
string $subject): array
38 $num_matches = preg_match_all($this->
getPattern(), $subject, $matches);
40 if ($num_matches == 0) {
41 require_once
'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacUnableToParseCondition.php';
45 $matches = array_map(
function ($element) {
46 return trim($element);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
match(string $subject)
Matches a delivered string with a the pattern returned by getPattern implemented in the explicit Manu...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...