Figma Support Forum

Regex operations, changing the case of letters

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:


and I’m trying to convert to


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?

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

• 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)

1 Like

Suuuuuuper helpful :metal: