End loop if nextc is -1
Merge pull request #1430 from carsonmcdonald/regexparsefix

End loop if nextc is -1