http://www.perlmonks.org?node_id=205344

curtisb has asked for the wisdom of the Perl Monks concerning the following question:

I have this line is an sql file.
GRANT SELECT, INSERT, DELETE, UPDATE ON "ARSAMS"."LOCATION_REPAIR_PART +S_MASTER" TO "ARSAMS" / / /
I cannot seem to figure out how to remove the extra two / without removing the first /. If I do s/\///g; it removes all / from the file. This is not what I want. I just need to remove the last two / after this statement. Does anyone have any advice.

Thanks
Bobby

Title edit by tye