Jim Meyering noticed some missing "const"s in the regex implementation. These can help the reader. I'll attach a patch.
Created attachment 637 [details] add some consts
Applied after cleanup the mess caused by the unsuitable patches.