Inline math regex fixed