# Regular expression to remove "UNUSED" line

**URL:** <https://forum.kirupa.com/t/regular-expression-to-remove-unused-line/324233>\
**Category:** Uncategorized\
**Created:** [August 9, 2011, 3:33pm UTC](https://forum.kirupa.com/t/regular-expression-to-remove-unused-line/324233 "2011-08-09T15:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abakiz](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@abakiz](https://forum.kirupa.com/u/abakiz)\
**Post date:** [August 9, 2011, 3:33pm UTC](https://forum.kirupa.com/t/regular-expression-to-remove-unused-line/324233/1 "2011-08-09T15:33:16Z")

</div>

I have a list CSS file with a list of rows like such:

```auto

UNUSED.ui-accordion .ui-accordion-content-active{display:block;}

```

I’m trying to write a regular expression to remove all of the lines that start with  
UNUSED all the way upto the bracket (}).

I’ve come up with so far:  
UNUSED.ui\<[^\>]\*/}

Could someone help me?  
thanks
