( 1: All signs till SpaceDashSpace, stored in group 1 )
( 2: one single word, stored in group 2 )( 3: an coma, which we will drop )
( 4: one space and the rest, stored in group 3 )
and replace by \1\3\2
FROM:
A book - Author, An
A book - Author, An Acclaimed And Noteworthy
TO:
A book - An Author
A book - An Acclaimed And Noteworthy Author
RegEx(1)
MATCH: (.+ - )(\w+),( .+)
REPLACE: \1\3\2
I tried this exactly as listed, and it gave me the following (note two spaces after dash):
A book - AnAuthor
A book - An Acclaimed And NoteworthyAuthor
Your technique in general, though, is spot on, and I appreciate your time.
Lol, didn't notice the age of the thread - appreciate your time regardless of when you spent it.
***
For what it's worth this gives the correct result:
(.+ - )(\w+), (.+) | Doesn't matter if there's a space at the start of word 3 match.
\1\3 \2 | Add a space between \3 \2
(By the way, Notepad++ is an excellent (free) tool in which to test Regular Expressions - gives me the same results - so far.)