algo4: dfs: probe: Regular expression matching