If I understand the problem... if you are 100% sure that "', '" only occurs between fields and never within, you can use the 'split' method of the string which could be faster than regexp in this simple case.