import re
      
      re.sub(r'(?<!^)(?=[A-Z])', '_', your_string).lower()
      Python language logo

      Convert camel case to snake case

      Python public recipes

      The code replaces all of the metacharacters found in the string with the underscore character.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.