A worked example
Change date separators
- Start with
- Pattern (\d{4})-(\d{2})-(\d{2}) / g / text 2026-10-02 / replacement $1/$2/$3
- Check the result
- 2026/10/02; groups 2026, 10, 02; match position @ 0
The parentheses capture year, month and day, and the replacement joins them in the same order.