Basic regex dictionary method