I'm trying to parse a file in Ruby to make it valid JSON. It uses single quotes, so I need to replace those.
But it also uses single quotes as possessives in words. I'm trying to use regex to get only single quotes that don't have a letter before AND a letter after, but what I have so far is ignoring anything with a letter before OR a letter after.
RegEx (?<![a-zA-Z])'(?![a-zA-Z])
Test String 'id': '4da7680f-3449-303f-8e79-d2abe665cbe9', 'phone_numbers': ['4108286112']}]}, {'email': None, 'gender': '', 'first_name': None, 'id': 1659439495, 'last_name': None, 'middle_name': None, 'network_ids': [100494], 'organization_name': "CHARLOTTE'S HAIR LINE INC.", 'phone': '4109334800'