use dedicated global struct for options
check if regex option has been set