Posts made by Joseph Rézeau

Picture of Développeurs Picture of Développeurs de plugins Picture of Moodleurs particulièrement utiles Picture of Testeurs Picture of Traducteurs
Bonjour,
Pour donner à un site Moodle le "look" d'un site déjà existant mais qui n'est pas un site Moodle, il faut avoir de solides connaissances en feuilles de style CSS et en charte graphique en général, et y passer beaucoup de temps. Ce ne sont pas telllement les fichiers cités dans ton message (config.php,header.html,footer.html,style.php) qui seront à modifier que les fichiers d'extension *.CSS, qui sont très complexes à manipuler.
Bon courage,
Joseph
Average of ratings:Utile (1)
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Oleg,
I have fixed the square brackets bug in REGEXP (should be downloadable from CVS latest very shortly). The following answers should do what you want: accept zero or one blank space between characters; please note that any extra blank space (more than one) will be automatically deleted from student's response. I do not see the point of accepting an unlimited number of semi colons (;) at the end of the expression.
Answer 1 : y=str[1][1];
Answer 2: y ?= ?str ?\[ ?1 ?\] ?\[ ?1 ?\] ?;
Note that space followed by ? means 0 or 1 space; note that the square brackets must be escaped, i.e. preceded by a backslash (unlike in Answer 1 which is not treated as a regular expression).
This will accept a grand total of 512 different responses:
y = str [ 1 ] [ 1 ] ;
y = str [ 1 ] [ 1 ];
y = str [ 1 ] [ 1] ;
y = str [ 1 ] [ 1];
y = str [ 1 ] [1 ] ;
y = str [ 1 ] [1 ];
y = str [ 1 ] [1] ;
y = str [ 1 ] [1];
y = str [ 1 ][ 1 ] ;
y = str [ 1 ][ 1 ];
y = str [ 1 ][ 1] ;
y = str [ 1 ][ 1];
y = str [ 1 ][1 ] ;
y = str [ 1 ][1 ];
y = str [ 1 ][1] ;
y = str [ 1 ][1];
y = str [ 1] [ 1 ] ;
y = str [ 1] [ 1 ];
etc.
It will also accept: y = str [ 1] [ 1 ] ; which will be automatically rewritten as y = str [ 1] [ 1 ] ;
etc.
Joseph