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
With notepad++ you'll need to use \2-\1 as the replacement string.
\2-\1
Sources : Mark's Speechblog