Fixed issue where it would assign multiple fold levels to the same fold and simplified the end regex.