Hi, looks like there is a bug in https://github.com/fent/randexp.js/blob/master/lib/randexp.js#L241. If you pass a string and not a RegExp as `regexp`, setting that property does not work. Cheers, Max