describe regexp with diagram