is there a way to delete everything after the final semi-colon within a page?
the script produce sql queries in a textarea that can be clicked and copied, but the last query is sometime incomplete.
like
INSERT INTO `jobs` ( `title` , `salary`,`duration`,`contact` ) VALUES ('chef','35000','full time ','555-5555');
INSERT INTO `jobs` ( `title` , `salary`,`duration`,`contact` ) VALUES ('teacher
this list may sometimes be 100 queries in length, but i need to delete everything after the final semi-colon.
thanks in advance