Maybe blgentry can help here.
I have [Composer] in my classical albums in the form of "Last Name, First Name (Birth-Death Date)" (e.g., Beethoven, Ludwig van (1770-1827)), and since I'm in the middle of changing some things tagging-wise, I've been trying to build an expression (probably a regex of some kind) that "grabs" the birth and death dates from between the parentheses in [Composer] (including dates where the composer hasn't died yet, e.g., Auerbach, Lera (1973)) and puts them in a custom field, say [ComposerDates]. I tried something like
regex([Composer], /#(() (.+)#/, 2, 0)
as the expression for my custom field, but it's not working. At minimum, I realize that the left parenthesis inside Reference 1 is probably wrong (likely throwing off the parenthesis groupings) and also that I hadn't accounted for the ending parenthesis, but at least I was hoping to get something like 1770-1827) in [ComposerDates].
Any suggestions? Thanks much!