improve regex functions docs