rename re_match to regex_match to prevent a namespace conflict on Linux as
reported by Han Boetes.

while here, rename re_buff accordingly for consistency.