Home>replace() JavaScript String Method>Edit It: Swap the position of capturing groups 1, 2, and 3Edit It: Swap the position of capturing groups 1, 2, and 3This code shows how to swap the position of three capturing groups.See it on StackBlitz