Regex Code and lib