[^X]* means anything but X as many times as you want. So F will match this part.