intent: How to convert the following string in python?
rewritten_intent: lower-case the string obtained by replacing the occurrences of regex pattern '(?<=[a-z])([A-Z])' in string `s` with eplacement '-\\1'
snippet: re.sub('(?<=[a-z])([A-Z])', '-\\1', s).lower()