Create Regex Pattern Javascript Program To Swap Two