Working on backreferences and captures