Skip to main content
Question

Regex operations, changing the case of letters


Kevin5

I have been trying to use the batch rename tool to modify the case of component names. For consistency I am trying to convert all names to CamelCase.

I have around 200 components labelled like:

“modal/signup/fullscreen”

and I’m trying to convert to

“Modal/Signup/Fullscreen”

Though I have the regex pattern to make the change, it seems that regex operations don’t work in the “rename to” field in the rename modal. Using “\U” appears to have no affect in modifying the case. I’ve tried several variations.

Has anyone had any success?

2 replies

JohannesBerlin

Hi, i hope it’s not to late. This Plugin does just what you need:

Figma

• Layer Name Case

You can use the %* with combination of letters to convert the layer name case.

→ Keyword %*u% - Convert to UPPER CASE

→ Keyword %*l% - Convert to lower case

→ Keyword %*t% - Convert to Title Case

→ Keyword %*uf% - Convert to Upper first word

→ Keyword %*c% - Convert to camelCase (This will remove the spaces)


Justin_Stephens1

Suuuuuuper helpful 🤘


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