I have a regular expression to select parts of text like tags.

```
<([^<]*)>

```

It matches texts like these

```
< some text between tag >

```

I have used [^<]\* to regex be optimal. But problem is that text is html and it's like :

```
 &lt; some text between tag &gt;

```

How can I write regular expression for this code (and not use ungreediness)?

Thank you