Home>replace() JavaScript String Method>Edit It: Insert space between capturing groups 1 and 2Edit It: Insert space between capturing groups 1 and 2This code shows how to insert space between two capturing groups.See it on StackBlitz