Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Selecting css properties AND curly brackets from CSS file in Komodo Edit Re: Selecting css properties AND curly brackets from CSS file in Komodo Edit

#120189
__
Participant

Open the Find dialog

Check the “regex” checkbox

This regex will find everything inside matching curly braces, and the braces themselves:

`{[^}]*}`

If you want to simply delete everything, you can use the Replace dialog instead, and replace the matches with an empty string.

You can precede the regex with the class name to find a specific block, e.g.,

`.template{[^}]*}`

…though this will match the `.template` part also.