View Single Post
Old 04-19-2011, 08:17 PM   #8
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
Thanks so much!

This:

authors:"~^\\w*\\, \\w"

works like charm. Thanks again.

However, I am confused. Why the two backslashes before the w? I have a reference guide that says (quote):

\d, \w and \s are shorthand character classes ... can be used inside and outside character classes.

So my thinking was that I need "any letter", followed by a comma, then a space, then any letter. Hence I should be able to use \w*,\s\w*. So despite the bug about the comma, this should work, shouldn't it.

Last edited by kakkalla; 04-19-2011 at 08:31 PM.
kakkalla is offline   Reply With Quote