form for grep constrained to particular p+o index