Quote:
Originally Posted by dwanthny
May someone can write an expression that breaks on the second space from the end. This way most authors would split correctly because they are two word names.
|
This should work for this use.
Set the regex to
Code:
(?P<title>.+) (?P<author>.+ .+)
Hope that works for you.
Edit: This will only work for authors with two names, not ones with three, such as Dr. or Jnr. etc.