Another fix to irefindex regex