makes all the link regexs into constants, and moves the options parsing to a tertiary operator format. simpler.