View Single Post
Old 02-03-2022, 05:47 PM   #916
qqukdbx
Junior Member
qqukdbx began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2022
Device: Kindle2 (KB)
Explain me the plugboard

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?
qqukdbx is offline   Reply With Quote