Better begin/end matching with %