Display matched regex groups and updated preview image