Quote:
Originally Posted by qqukdbx
Hi, is there any regex guru who can help me to understand plugboard template " Show author name as Initial and Surname (Kindle) (inspired by brewjono)"? Im afraid i dont fully understand the syntax:
Code:
{author_sort:re(\, (.).*?( &|$),\, \1\2)}
When input from author_sort is for example " Goyal, Kovid" regex above produces " K Goyal".
How the regex matches the string and how replaces the field?
|
As shown by the attached screenshot, it doesn't produce "
K Goyal" but instead produces "
Goyal, K", which is what I would expect from the regex.
Where are you seeing the result you say you get? If it is on a device then the device is changing it. Nothing the plugboard can do about that. Workarounds might be available but you should ask in the devices forum, naming your device.