Removed regex.h dependency.