@@ -47,7 +47,7 @@ char* get_match_expreg(expreg* er, int* deb, int* fin) {
*deb = er->pos + start;
}
if(fin != NULL){
- *fin = end;
+ *fin = er->pos + end;
//Recup la chaine
char* str;