changes regex in assembly modes