use-capture-groups-to-search-and-replace
(\w+)(\s)(\w+)\2(\w+)
in this exercise we have to use capture groups and then replace the string order to 'three two one'.
But first, when you are using the capture group you may have asked yourself why the code below does not work:
(\w+)(\s)\1\2\1
to match the sting "one two three"...
Submitted by gabriel silva lima - a year ago