basic regex ast