If I have a text document that looks like this:

```

DESERT TROLL STR: 42 DEX: 17 AC: 17
HALF-ORC STR: 19 DEX: 5 AC: 17
EYEBLADE STR: 4 DEX:  20 AC: 12
BLUE DRAGON STR: 40 DEX: 65: AC: 42
SLAVE: NO FIGHTING ABILTIES AC: 1

```

when i read it with:

```
    with open("dndmobs.txt", 'r') as f:

```

I want to sort the lines based on the mobs AC in the end, lowest AC starting in the top and then increases.

```
    mobs = re.findall(r'(?<=\AC: ).*',line)

```

With regex i made a line that selects everything after "AC: " Can I use this as a "identifier" for the lines and then sort them?

Thanks in advance