Skip to main content
Question

Regex Renaming Issue

  • January 16, 2025
  • 0 replies
  • 15 views

r_sh
  • Active Member
  • 25 replies

I am batch renaming layers and need to change the case from mixed case to lowercase. (A simple example: “ICON_brand_IconNameHere_Primary” → “icon_brand_iconnamehere_primary”).

 

According to this Figma article, the Rename Layers tool should support regular expressions. I’ve used this in the past to successfully edit prefixes and suffixes, but it isn’t working for changing cases. I’ve tried using the following expressions:

 

Match: 
([A-Z]+) 
Successfully matches capital letters

Replace:
\L$1
I’ve tried variations on this, and instead of changing the case, it just inserts “\L$1” wherever capitals exist in the original.


How can I achieve this?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings