Regex fixes for file.uncomment state, Fixes #4003

Fixes #4003

Initial check for the regex doesn't anchor to beginning of line or check for lack of comment character.