You can use the template with a backlink and group the last words after the "=":
Search text:
m ([AZ]) ([A-Za-z0-9] +) = (L \ 1 \ 2)
Replace:
this.L $ 1 $ 2 = $ 3
, . , ( ):
m(\p{Alpha})(\w+) = (((?i)\1)\2)
:
this\.L$1$2 = $3
, :
mContext = context
:
this.LContext = context
, "L", text/replace, , , " " :
this\.$3 = $3
, :
this.context = context
, !