I tried to search for every word that has bar-foo and switch them to foo-bar so I wrote on the find (\\w+)-(\\w+) and on the replace $2-$1
(\\w+)-(\\w+)
$2-$1
Use \2 \1 in the replace field.
\2 \1
Notepad++ uses the linux like \1 syntax instead of $1
With notepad++ you'll need to use \2-\1 as the replacement string.
\2-\1
Sources : Mark's Speechblog